fix relative include path when loading folders

This commit is contained in:
Ricardo Luís Vaz Silva 2022-06-07 10:40:06 -03:00 committed by Rachael Alexanderson
parent 9454ba1009
commit 6f6942609c

View file

@ -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 '/'