Skip to content

Commit

Permalink
fix relative include path when loading folders
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 authored and madame-rachelle committed Jun 7, 2022
1 parent 9454ba1 commit 6f69426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/scripting/frontend/zcc_parser.cpp
Expand Up @@ -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 '/'

Expand Down

0 comments on commit 6f69426

Please sign in to comment.