summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.h
diff options
context:
space:
mode:
authorbigbossbro08 <bigbossbro08@gmail.com>2020-05-10 17:49:33 +0200
committerbigbossbro08 <bigbossbro08@gmail.com>2020-05-10 17:49:33 +0200
commitc798e1bacdaabaf140ff3904948fd7cec46c09bb (patch)
treeef6d50874117bcc819b90dcd231d74f23fa0108d /src/peds/Ped.h
parentdefined out asserts. (diff)
downloadre3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar.gz
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar.bz2
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar.lz
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar.xz
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.tar.zst
re3-c798e1bacdaabaf140ff3904948fd7cec46c09bb.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Ped.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/peds/Ped.h b/src/peds/Ped.h
index 9f105e7a..e399b7e4 100644
--- a/src/peds/Ped.h
+++ b/src/peds/Ped.h
@@ -82,7 +82,7 @@ struct FightMove
uint8 damage;
uint8 flags;
};
-static_assert(sizeof(FightMove) == 0x18, "FightMove: error");
+VALIDATE_SIZE(FightMove, 0x18);
// TODO: This is eFightState on mobile.
enum PedFightMoves
@@ -896,6 +896,7 @@ public:
void FinishFuckUCB(CAnimBlendAssociation *assoc, void *arg);
#ifndef PED_SKIN
+#ifdef CHECK_STRUCT_SIZES
static_assert(offsetof(CPed, m_nPedState) == 0x224, "CPed: error");
static_assert(offsetof(CPed, m_pCurSurface) == 0x2FC, "CPed: error");
static_assert(offsetof(CPed, m_pMyVehicle) == 0x310, "CPed: error");
@@ -907,5 +908,6 @@ static_assert(offsetof(CPed, m_lookTimer) == 0x4CC, "CPed: error");
static_assert(offsetof(CPed, m_bodyPartBleeding) == 0x4F2, "CPed: error");
static_assert(offsetof(CPed, m_pedInObjective) == 0x16C, "CPed: error");
static_assert(offsetof(CPed, m_pEventEntity) == 0x19C, "CPed: error");
-static_assert(sizeof(CPed) == 0x53C, "CPed: error");
+#endif
+VALIDATE_SIZE(CPed, 0x53C);
#endif