mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
fix relative include path when loading folders
This commit is contained in:
parent
9454ba1009
commit
6f6942609c
1 changed files with 1 additions and 1 deletions
|
@ -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 '/'
|
||||
|
||||
|
|
Loading…
Reference in a new issue