From fbca1b435a40bad0fbf5345b3268d92bc96f8a30 Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 31 Oct 2020 20:26:25 -0700 Subject: [PATCH] Replaced level header does not mark game modified if from a main wad --- src/dehacked.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dehacked.c b/src/dehacked.c index 43065d8a5..11a94c12c 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -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