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; }