From 6f6942609c95ad2bb18725a6af684f1d17752f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Lu=C3=ADs=20Vaz=20Silva?= Date: Tue, 7 Jun 2022 10:40:06 -0300 Subject: [PATCH] fix relative include path when loading folders --- src/common/scripting/frontend/zcc_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/scripting/frontend/zcc_parser.cpp b/src/common/scripting/frontend/zcc_parser.cpp index cae956672..a8ec238dc 100644 --- a/src/common/scripting/frontend/zcc_parser.cpp +++ b/src/common/scripting/frontend/zcc_parser.cpp @@ -425,7 +425,7 @@ PNamespace *ParseOneScript(const int baselump, ZCCParseState &state) { FString fullPath = IncludeLocs[i].FileName.GetChars(); // get full path, format 'wad:filepath/filename' - auto start = fullPath.IndexOf(":"); // find first ':' + auto start = fullPath.LastIndexOf(":"); // find find separator between wad and path auto end = fullPath.LastIndexOf("/"); // find last '/'