From 1636ddc00ea8658ca4d90c78031c76d7e9b0b8c6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 31 May 2021 21:19:29 +0200 Subject: [PATCH] - set the main resource file's index in the file system. Some checks need this. --- source/core/initfs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/initfs.cpp b/source/core/initfs.cpp index 8c5b7da92..3c1d3e473 100644 --- a/source/core/initfs.cpp +++ b/source/core/initfs.cpp @@ -339,6 +339,7 @@ void InitFileSystem(TArray& groups) } i--; } + fileSystem.SetIwadNum(1); fileSystem.SetMaxIwadNum(Files.Size() - 1); D_AddConfigFiles(Files, "Global.Autoload", "*.grp", GameConfig);