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/peds/DummyPed.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/peds/DummyPed.h') 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 -- 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/peds/DummyPed.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/peds/DummyPed.h') diff --git a/src/peds/DummyPed.h b/src/peds/DummyPed.h index 5bb72d87..ea617c76 100644 --- a/src/peds/DummyPed.h +++ b/src/peds/DummyPed.h @@ -9,6 +9,4 @@ class CDummyPed : CDummy int32 unknown; }; -#ifdef CHECK_STRUCT_SIZES -static_assert(sizeof(CDummyPed) == 0x70, "CDummyPed: error"); -#endif \ No newline at end of file +VALIDATE_SIZE(CDummyPed, 0x70); -- cgit v1.2.3