From 2d0a876ab1ed3d05ad8b3d552a266fed80605e0d Mon Sep 17 00:00:00 2001 From: drfrag Date: Sun, 18 Jul 2021 11:30:52 +0200 Subject: [PATCH] - Fix wrong thiswad check for materials too. --- 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 4f5dc4659..b37796332 100644 --- a/src/r_data/gldefs.cpp +++ b/src/r_data/gldefs.cpp @@ -1337,7 +1337,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; }