diff options
Diffstat (limited to 'src/audio')
-rw-r--r-- | src/audio/AudioCollision.h | 6 | ||||
-rw-r--r-- | src/audio/AudioManager.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/audio/AudioCollision.h b/src/audio/AudioCollision.h index 324bab0e..e8711f9a 100644 --- a/src/audio/AudioCollision.h +++ b/src/audio/AudioCollision.h @@ -20,7 +20,9 @@ public: // no methods }; +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(cAudioCollision) == 40, "cAudioCollision: error"); +#endif class cAudioCollisionManager { @@ -35,4 +37,6 @@ public: void AddCollisionToRequestedQueue(); }; -static_assert(sizeof(cAudioCollisionManager) == 852, "cAudioCollisionManager: error");
\ No newline at end of file +#ifdef CHECK_STRUCT_SIZES +static_assert(sizeof(cAudioCollisionManager) == 852, "cAudioCollisionManager: error"); +#endif
\ No newline at end of file diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h index 0d0c5d91..5f00eac4 100644 --- a/src/audio/AudioManager.h +++ b/src/audio/AudioManager.h @@ -52,7 +52,9 @@ public: uint8 m_AudioEvents; }; +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(tAudioEntity) == 40, "tAudioEntity: error"); +#endif class tPedComment { @@ -135,7 +137,9 @@ public: float m_fVelocityChange; }; +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(cVehicleParams) == 0x18, "cVehicleParams: error"); +#endif enum { /* |