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/animation/AnimBlendNode.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/animation/AnimBlendNode.h') diff --git a/src/animation/AnimBlendNode.h b/src/animation/AnimBlendNode.h index 361a4134..46f2fee4 100644 --- a/src/animation/AnimBlendNode.h +++ b/src/animation/AnimBlendNode.h @@ -26,4 +26,7 @@ public: void GetCurrentTranslation(CVector &trans, float weight); void GetEndTranslation(CVector &trans, float weight); }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CAnimBlendNode) == 0x1C, "CAnimBlendNode: 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/animation/AnimBlendNode.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/animation/AnimBlendNode.h') diff --git a/src/animation/AnimBlendNode.h b/src/animation/AnimBlendNode.h index 46f2fee4..89924d6a 100644 --- a/src/animation/AnimBlendNode.h +++ b/src/animation/AnimBlendNode.h @@ -27,6 +27,5 @@ public: void GetEndTranslation(CVector &trans, float weight); }; -#ifdef CHECK_STRUCT_SIZES -static_assert(sizeof(CAnimBlendNode) == 0x1C, "CAnimBlendNode: error"); -#endif \ No newline at end of file + +VALIDATE_SIZE(CAnimBlendNode, 0x1C); -- cgit v1.2.3