diff options
author | bigbossbro08 <bigbossbro08@gmail.com> | 2020-05-10 15:54:37 +0200 |
---|---|---|
committer | bigbossbro08 <bigbossbro08@gmail.com> | 2020-05-10 15:54:37 +0200 |
commit | af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8 (patch) | |
tree | 76d91c02ec3701babef050228de8a40fe2306dcd /src/entities | |
parent | Small unification (diff) | |
download | re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar.gz re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar.bz2 re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar.lz re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar.xz re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.tar.zst re3-af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/entities/Building.h | 3 | ||||
-rw-r--r-- | src/entities/Dummy.h | 3 | ||||
-rw-r--r-- | src/entities/Entity.h | 3 | ||||
-rw-r--r-- | src/entities/Physical.h | 3 | ||||
-rw-r--r-- | src/entities/Treadable.h | 3 |
5 files changed, 15 insertions, 0 deletions
diff --git a/src/entities/Building.h b/src/entities/Building.h index 7b837f46..50818189 100644 --- a/src/entities/Building.h +++ b/src/entities/Building.h @@ -16,4 +16,7 @@ public: virtual bool GetIsATreadable(void) { return false; } }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CBuilding) == 0x64, "CBuilding: error"); +#endif diff --git a/src/entities/Dummy.h b/src/entities/Dummy.h index fcfd23fb..de0e448b 100644 --- a/src/entities/Dummy.h +++ b/src/entities/Dummy.h @@ -15,4 +15,7 @@ public: static void *operator new(size_t); static void operator delete(void*, size_t); }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CDummy) == 0x68, "CDummy: error"); +#endif diff --git a/src/entities/Entity.h b/src/entities/Entity.h index 330fde69..18254ae4 100644 --- a/src/entities/Entity.h +++ b/src/entities/Entity.h @@ -172,4 +172,7 @@ public: static void AddSteamsFromGround(CPtrList& list); }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CEntity) == 0x64, "CEntity: error"); +#endif
\ No newline at end of file diff --git a/src/entities/Physical.h b/src/entities/Physical.h index b47d556e..c9b7402b 100644 --- a/src/entities/Physical.h +++ b/src/entities/Physical.h @@ -160,4 +160,7 @@ public: bool CheckCollision(void); bool CheckCollision_SimpleCar(void); }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CPhysical) == 0x128, "CPhysical: error"); +#endif diff --git a/src/entities/Treadable.h b/src/entities/Treadable.h index 9e4de59a..272b2d4b 100644 --- a/src/entities/Treadable.h +++ b/src/entities/Treadable.h @@ -12,4 +12,7 @@ public: bool GetIsATreadable(void) { return true; } }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CTreadable) == 0x94, "CTreadable: error"); +#endif |