From f6d799e77567a21a24ce8afaf03fc9a05a5be9d8 Mon Sep 17 00:00:00 2001 From: Yimura <andreas.maerten@scarlet.be> Date: Mon, 12 Sep 2022 22:48:14 +0100 Subject: [PATCH] fix(CPhysical): maxhealth member type (#37) --- entities/CPhysical.hpp | 2 +- vehicle/CHandlingData.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entities/CPhysical.hpp b/entities/CPhysical.hpp index ea05380..d48cf1c 100644 --- a/entities/CPhysical.hpp +++ b/entities/CPhysical.hpp @@ -21,7 +21,7 @@ namespace rage char gap198[232]; float m_health; //0x0280 char pad_0284[28]; - uint32_t m_maxhealth; //0x02A0 + float m_maxhealth; //0x02A0 char gap2A4[4]; uint64_t qword2A8; char gap2B0[72]; diff --git a/vehicle/CHandlingData.hpp b/vehicle/CHandlingData.hpp index b38879e..27bacb5 100644 --- a/vehicle/CHandlingData.hpp +++ b/vehicle/CHandlingData.hpp @@ -7,7 +7,7 @@ class CHandlingData { public: - char pad_0000[8]; //0x0000 + uint64_t qword0; //0x0000 uint32_t m_model_hash; //0x0008 float m_mass; //0x000C float m_initial_drag_coeff; //0x0010