diff --git a/src/d_iwad.cpp b/src/d_iwad.cpp index cc3f1179e1..f8c30bf85f 100644 --- a/src/d_iwad.cpp +++ b/src/d_iwad.cpp @@ -530,7 +530,7 @@ int FIWadManager::IdentifyVersion (TArray &wadfiles, const char *iwad, { for (auto &dir : mSearchPaths) { - FStringf fullpath("%s/%s", dir, custwad.GetChars()); + FStringf fullpath("%s/%s", dir.GetChars(), custwad.GetChars()); if (FileExists(fullpath)) { mFoundWads.Push({ fullpath, "", -1 });