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/modelinfo/TimeModelInfo.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modelinfo/TimeModelInfo.h') diff --git a/src/modelinfo/TimeModelInfo.h b/src/modelinfo/TimeModelInfo.h index f8b7c8ff..cbe171e0 100644 --- a/src/modelinfo/TimeModelInfo.h +++ b/src/modelinfo/TimeModelInfo.h @@ -17,4 +17,7 @@ public: void SetOtherTimeModel(int32 other) { m_otherTimeModelID = other; } CTimeModelInfo *FindOtherTimeModel(void); }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CTimeModelInfo) == 0x58, "CTimeModelInfo: error"); +#endif \ No newline at end of file -- 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/modelinfo/TimeModelInfo.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modelinfo/TimeModelInfo.h') diff --git a/src/modelinfo/TimeModelInfo.h b/src/modelinfo/TimeModelInfo.h index cbe171e0..73b6ab26 100644 --- a/src/modelinfo/TimeModelInfo.h +++ b/src/modelinfo/TimeModelInfo.h @@ -18,6 +18,4 @@ public: CTimeModelInfo *FindOtherTimeModel(void); }; -#ifdef CHECK_STRUCT_SIZES -static_assert(sizeof(CTimeModelInfo) == 0x58, "CTimeModelInfo: error"); -#endif \ No newline at end of file +VALIDATE_SIZE(CTimeModelInfo, 0x58); -- cgit v1.2.3