summaryrefslogtreecommitdiff
path: root/src/peds
diff options
context:
space:
mode:
authorbigbossbro08 <bigbossbro08@gmail.com>2020-05-10 19:54:37 +0600
committerbigbossbro08 <bigbossbro08@gmail.com>2020-05-10 19:54:37 +0600
commitaf6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8 (patch)
tree76d91c02ec3701babef050228de8a40fe2306dcd /src/peds
parentd9a3533438ea0bf3ace712facfd01c9462390130 (diff)
defined out asserts.
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/DummyPed.h3
-rw-r--r--src/peds/PedIK.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/peds/DummyPed.h b/src/peds/DummyPed.h
index af633dc4..5bb72d87 100644
--- a/src/peds/DummyPed.h
+++ b/src/peds/DummyPed.h
@@ -8,4 +8,7 @@ class CDummyPed : CDummy
int32 pedType;
int32 unknown;
};
+
+#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CDummyPed) == 0x70, "CDummyPed: error");
+#endif \ No newline at end of file
diff --git a/src/peds/PedIK.h b/src/peds/PedIK.h
index fd9e4702..566193d6 100644
--- a/src/peds/PedIK.h
+++ b/src/peds/PedIK.h
@@ -64,4 +64,7 @@ public:
bool LookAtPosition(CVector const& pos);
bool RestoreLookAt(void);
};
+
+#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CPedIK) == 0x28, "CPedIK: error");
+#endif