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/render/Shadows.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/render/Shadows.h') diff --git a/src/render/Shadows.h b/src/render/Shadows.h index 39be343e..8e89024d 100644 --- a/src/render/Shadows.h +++ b/src/render/Shadows.h @@ -51,7 +51,10 @@ public: CStoredShadow() { } }; + +#ifdef CHECK_STRUCT_SIZES VALIDATE_SIZE(CStoredShadow, 0x30); +#endif class CPolyBunch { @@ -65,7 +68,10 @@ public: CPolyBunch() { } }; + +#ifdef CHECK_STRUCT_SIZES VALIDATE_SIZE(CPolyBunch, 0x6C); +#endif class CStaticShadow { @@ -93,7 +99,10 @@ public: void Free(); }; + +#ifdef CHECK_STRUCT_SIZES VALIDATE_SIZE(CStaticShadow, 0x40); +#endif class CPermanentShadow { @@ -115,7 +124,9 @@ public: CPermanentShadow() { } }; +#ifdef CHECK_STRUCT_SIZES VALIDATE_SIZE(CPermanentShadow, 0x38); +#endif class CPtrList; class CAutomobile; -- cgit v1.2.3 From c798e1bacdaabaf140ff3904948fd7cec46c09bb Mon Sep 17 00:00:00 2001 From: bigbossbro08 Date: Sun, 10 May 2020 21:49:33 +0600 Subject: Fixed typos and made all assert functions optional --- src/render/Shadows.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/render/Shadows.h') diff --git a/src/render/Shadows.h b/src/render/Shadows.h index 8e89024d..ef56d336 100644 --- a/src/render/Shadows.h +++ b/src/render/Shadows.h @@ -124,9 +124,8 @@ public: CPermanentShadow() { } }; -#ifdef CHECK_STRUCT_SIZES + VALIDATE_SIZE(CPermanentShadow, 0x38); -#endif class CPtrList; class CAutomobile; -- cgit v1.2.3