fixed use of wrong file lookup function in map patching code.

This commit is contained in:
Christoph Oelckers 2024-11-23 21:19:40 +01:00
parent 0fa0e3da23
commit 51ebaf9296

View file

@ -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())
{