diff --git a/source/games/blood/src/barf.cpp b/source/games/blood/src/barf.cpp index f5f6f6381..ad218159c 100644 --- a/source/games/blood/src/barf.cpp +++ b/source/games/blood/src/barf.cpp @@ -656,7 +656,7 @@ void ParseScript(int lumpnum) if (dword_44CE0[gParseLevel] == 0) { // In the RFS files I have seen the outermost directory is not part of what goes into the file system. - auto inp1 = strchr(inp, '\\'); + auto inp1 = strpbrk(inp, "/\\"); if (!inp1 || !fileSystem.CreatePathlessCopy(inp1 + 1, ID, nFlags)) { // I'll activate this when I find evidence that it is needed. Otherwise the risk of picking up unwanted data is too high.