fix(CPhysical): 0x20 bytes removed (#45)

This commit is contained in:
Yimura 2022-10-25 18:39:32 +02:00 committed by GitHub
parent 52f23b3a02
commit a35ff28244
4 changed files with 5 additions and 7 deletions

View File

@ -20,5 +20,5 @@ class CObject : public rage::CPhysical
uint64_t qword408;
uint64_t qword410;
};
static_assert(sizeof(CObject) == 0x418);
static_assert(sizeof(CObject) == 0x3F8);
#pragma pack(pop)

View File

@ -19,16 +19,14 @@ namespace rage
char gap191[3];
uint32_t dword194;
char gap198[232];
float m_health; //0x0280
char pad_0284[28];
float m_health; //0x0280
float m_maxhealth; //0x02A0
char gap2A4[4];
uint64_t qword2A8;
char gap2B0[72];
uint64_t qword2F8;
uint64_t qword300;
uint32_t dword308;
};
static_assert(sizeof(CPhysical) == 0x30C);
static_assert(sizeof(CPhysical) == 0x2EC);
#pragma pack(pop)
}

View File

@ -29,6 +29,6 @@ public:
char pad_146C[196]; //0x146C
float m_armor; //0x1530
}; //Size: 0x1534
static_assert(sizeof(CPed) == 0x1534);
static_assert(sizeof(CPed) == 0x1514);
#pragma pack(pop)

View File

@ -326,5 +326,5 @@ public:
char gap1467;
uint64_t qword1468;
};
static_assert(sizeof(CVehicle) == 0x1470);
static_assert(sizeof(CVehicle) == 0x1450);
#pragma pack(pop)