Skip to content

Commit

Permalink
fixed use of wrong file lookup function in map patching code.
Browse files Browse the repository at this point in the history
coelckers committed Nov 23, 2024
1 parent 0fa0e3d commit 51ebaf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/duke/src/gamedef.cpp
Original file line number Diff line number Diff line change
@@ -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())
{

0 comments on commit 51ebaf9

Please sign in to comment.