diff --git a/src/w_wad.cpp b/src/w_wad.cpp index 450abd056..4d8250fda 100644 --- a/src/w_wad.cpp +++ b/src/w_wad.cpp @@ -153,7 +153,7 @@ void FWadCollection::InitMultipleFiles (TArray &filenames) int baselump = NumLumps; AddFile (filenames[i]); - if (i == (unsigned)MaxIwadIndex) MoveLumpsInFolder("after_iwad/"); + if (i == (unsigned)IwadIndex) MoveLumpsInFolder("after_iwad/"); FStringf path("filter/%s", Files.Last()->GetHash().GetChars()); MoveLumpsInFolder(path); }