From 4c0e8cc7d80a0176ba13cf5d371c9df54f07090d Mon Sep 17 00:00:00 2001 From: Yimura Date: Tue, 5 Jul 2022 15:13:18 +0200 Subject: [PATCH] fix(CBaseModelInfo): Fixed byte alignment --- CBaseModelInfo.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CBaseModelInfo.hpp b/CBaseModelInfo.hpp index caa0672..a3430c8 100644 --- a/CBaseModelInfo.hpp +++ b/CBaseModelInfo.hpp @@ -27,7 +27,7 @@ enum class eModelType : std::uint8_t Unk193 = 193 }; -#pragma pack(push, 2) +#pragma pack(push, 1) class CBaseModelInfo { public: @@ -38,7 +38,7 @@ public: char pad_003C[4]; //0x003C rage::fvector3 m_max_dimensions; //0x0040 char pad_004C[81]; //0x004C - uint8_t m_model_type; //0x009D + eModelType m_model_type; //0x009D char pad_009E[6]; //0x009E }; //Size: 0x00A4 static_assert(sizeof(CBaseModelInfo) == 0xA4);