From 51ebaf92969ea8fd9f06b3b0197582d113958235 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 23 Nov 2024 21:19:40 +0100 Subject: [PATCH] fixed use of wrong file lookup function in map patching code. --- source/games/duke/src/gamedef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {