Fix Ploadflat closing the game with "Too many flats in level" error message

This commit is contained in:
Jaime Passos 2019-12-11 22:45:47 -03:00
parent 6bd5246edd
commit ea129f701c

View file

@ -672,7 +672,7 @@ INT32 P_AddLevelFlat(const char *flatname, levelflat_t *levelflat)
//
INT32 P_AddLevelFlatRuntime(const char *flatname)
{
return Ploadflat(0, flatname);
return Ploadflat(levelflats, flatname);
}
// help function for $$$.sav checking