From 3f9a3a454b3889b1471dc851795098cd05ae4690 Mon Sep 17 00:00:00 2001 From: Gaerzi Date: Fri, 16 Jul 2021 19:12:56 +0200 Subject: [PATCH] Brightmaps fix See https://forum.zdoom.org/viewtopic.php?f=2&t=72687 for more information. --- src/r_data/gldefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_data/gldefs.cpp b/src/r_data/gldefs.cpp index 345bad544..4f5dc4659 100644 --- a/src/r_data/gldefs.cpp +++ b/src/r_data/gldefs.cpp @@ -1155,7 +1155,7 @@ class GLDefsParser if (lumpnum != -1) { if (iwad && fileSystem.GetFileContainer(lumpnum) <= fileSystem.GetMaxIwadNum()) useme = true; - if (thiswad && fileSystem.GetFileContainer(lumpnum) == workingLump) useme = true; + if (thiswad && fileSystem.GetFileContainer(lumpnum) == fileSystem.GetFileContainer(workingLump)) useme = true; } if (!useme) return; }