Replaced level header does not mark game modified if from a main wad

This commit is contained in:
James R 2020-10-31 20:26:25 -07:00
parent 8f68a21f2f
commit fbca1b435a

View file

@ -1699,7 +1699,7 @@ static void readlevelheader(MYFILE *f, char * name)
I_Error("Too many maps!");
}
if (mapheaderinfo[num-1])
if (f->wad > mainwads && num <= nummapheaders)
G_SetGameModified(multiplayer, true); // only mark as a major mod if it replaces an already-existing mapheaderinfo
// Reset all previous map header information