sanity check
parent
96b1ebca95
commit
c382af789c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue