Server: add static asserts for node graph structs

Make sure they don't change in size, else the AI node graph file becomes invalid.
This commit is contained in:
Kawe Mazidjatari 2024-06-17 15:46:06 +02:00
parent 4b67f4c27e
commit ec44837022

View File

@ -151,6 +151,7 @@ struct CAI_ScriptNode
// NavMeshNode_GetBooleanData and NavMeshNode_GetBooleanData
CBitVec<64> m_DataSlots;
};
static_assert(sizeof(CAI_ScriptNode) == 20);
//=============================================================================
// >> CAI_HullData
@ -165,3 +166,4 @@ struct CAI_HullData
// just part of this struct.
char unk3[8];
};
static_assert(sizeof(CAI_HullData) == 24);