sanity check

master
an 2019-12-07 11:26:37 -05:00
parent 96b1ebca95
commit c382af789c
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ static void PR_LoadDef(ddef_t *def, byte const **data)
def->type = ReadLittleShort(data);
def->ofs = ReadLittleShort(data);
def->s_name = ReadLittleLong(data);
if(def->ofs % 4 != 0)
Host_Error("PR_LoadDef: offset must be 4 byte aligned");
}
static void PR_LoadGlobalDefs(byte const *data)