From 2c5f23bacb387d000a3a93eddb764b1a4c3789b5 Mon Sep 17 00:00:00 2001 From: GoldenTails Date: Fri, 21 Aug 2020 03:30:22 -0500 Subject: [PATCH] Fix a bug where adding the same mod multiple times counted to the mod limit A one line fix. Seriously. --- src/w_wad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/w_wad.c b/src/w_wad.c index 548d1bc00..701820b2f 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -776,6 +776,7 @@ UINT16 W_InitFile(const char *filename, boolean mainfile, boolean startup) if (!memcmp(wadfiles[i]->md5sum, md5sum, 16)) { CONS_Alert(CONS_ERROR, M_GetText("%s is already loaded\n"), filename); + packetsizetally -= nameonlylength(filename) + 22; if (handle) fclose(handle); return W_InitFileError(filename, false);