diff --git a/source/games/duke/src/gamedef.cpp b/source/games/duke/src/gamedef.cpp index d8244ee6bb..5a258a299d 100644 --- a/source/games/duke/src/gamedef.cpp +++ b/source/games/duke/src/gamedef.cpp @@ -3291,7 +3291,7 @@ void loadcons() { // fix broken secret exit in WT's super secret map. // This cannot be done from an RMAPINFO definition because the conditions are too specific and must not override custom maps. - int num = fileSystem.CheckNumForName("e1l7.map"); + int num = fileSystem.FindFile("e1l7.map"); int file = fileSystem.GetFileContainer(num); if (file <= fileSystem.GetMaxIwadNum()) {