Replace INT16_MAX with LUMPERROR in lump check.

This commit is contained in:
Nev3r 2019-12-30 14:45:39 +01:00
parent 7ae2143c91
commit f9d6e26558
1 changed files with 1 additions and 1 deletions

View File

@ -3536,7 +3536,7 @@ boolean P_LoadLevel(boolean fromnetsave)
// internal game map
maplumpname = G_BuildMapName(gamemap);
lastloadedmaplumpnum = W_CheckNumForName(maplumpname);
if (lastloadedmaplumpnum == INT16_MAX)
if (lastloadedmaplumpnum == LUMPERROR)
I_Error("Map %s not found.\n", maplumpname);
R_ReInitColormaps(mapheaderinfo[gamemap-1]->palette);