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

@ -85,6 +85,4 @@ public:
}
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CAnimBlendAssociation) == 0x40, "CAnimBlendAssociation: error");
#endif
VALIDATE_SIZE(CAnimBlendAssociation, 0x40);

View File

@ -26,7 +26,7 @@ struct AnimBlendFrameData
#endif
};
#ifndef PED_SKIN
static_assert(sizeof(AnimBlendFrameData) == 0x14, "AnimBlendFrameData: error");
VALIDATE_SIZE(AnimBlendFrameData, 0x14);
#endif
@ -51,5 +51,5 @@ public:
void ForAllFrames(void (*cb)(AnimBlendFrameData*, void*), void *arg);
};
#ifndef PED_SKIN
static_assert(sizeof(CAnimBlendClumpData) == 0x14, "CAnimBlendClumpData: error");
VALIDATE_SIZE(CAnimBlendClumpData, 0x14);
#endif

View File

@ -25,6 +25,4 @@ public:
void RemoveUncompressedData(void);
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CAnimBlendHierarchy) == 0x28, "CAnimBlendHierarchy: error");
#endif
VALIDATE_SIZE(CAnimBlendHierarchy, 0x28);

View File

@ -27,6 +27,5 @@ public:
void GetEndTranslation(CVector &trans, float weight);
};
#ifdef CHECK_STRUCT_SIZES
static_assert(sizeof(CAnimBlendNode) == 0x1C, "CAnimBlendNode: error");
#endif
VALIDATE_SIZE(CAnimBlendNode, 0x1C);

View File

@ -51,5 +51,5 @@ public:
#endif
};
#ifndef PED_SKIN
static_assert(sizeof(CAnimBlendSequence) == 0x2C, "CAnimBlendSequence: error");
VALIDATE_SIZE(CAnimBlendSequence, 0x2C);
#endif