Fix an issue with reading invalid memory when loading a map inside a pk3 that has no REJECT table.

This commit is contained in:
toaster 2022-10-29 12:51:00 +01:00
parent 0df494d30d
commit de51d065b0

View file

@ -3071,6 +3071,10 @@ boolean P_SetupLevel(boolean skipprecip)
(fileinfo + ML_REJECT)->size,
(fileinfo + ML_REJECT)->name);
}
else
{
rejectmatrix = NULL;
}
// Important: take care of the ordering of the next functions.
if (!loadedbm)