Fixed typos and made all assert functions optional

This commit is contained in:
bigbossbro08
2020-05-10 21:49:33 +06:00
parent af6e132b37
commit c798e1bacd
73 changed files with 110 additions and 184 deletions

View File

@ -15,7 +15,7 @@ enum ModelInfoType : uint8
MITYPE_PED = 6,
MITYPE_XTRACOMPS = 7,
};
static_assert(sizeof(ModelInfoType) == 1, "ModeInfoType: error");
VALIDATE_SIZE(ModelInfoType, 1);
class C2dEffect;
@ -70,6 +70,4 @@ public:
uint16 GetNumRefs() const { return m_refCount; }
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CBaseModelInfo) == 0x30, "CBaseModelInfo: error");
#endif
VALIDATE_SIZE(CBaseModelInfo, 0x30);