From af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8 Mon Sep 17 00:00:00 2001 From: bigbossbro08 Date: Sun, 10 May 2020 19:54:37 +0600 Subject: defined out asserts. --- src/objects/DummyObject.h | 3 +++ src/objects/Object.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/objects') diff --git a/src/objects/DummyObject.h b/src/objects/DummyObject.h index d4dce609..8a0913c5 100644 --- a/src/objects/DummyObject.h +++ b/src/objects/DummyObject.h @@ -10,4 +10,7 @@ public: CDummyObject(void) {} CDummyObject(CObject *obj); }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CDummyObject) == 0x68, "CDummyObject: error"); +#endif \ No newline at end of file diff --git a/src/objects/Object.h b/src/objects/Object.h index 80b9015c..ff4c896e 100644 --- a/src/objects/Object.h +++ b/src/objects/Object.h @@ -97,4 +97,7 @@ public: static void DeleteAllTempObjects(); static void DeleteAllTempObjectsInArea(CVector point, float fRadius); }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CObject) == 0x198, "CObject: error"); +#endif -- cgit v1.2.3