diff options
Diffstat (limited to 'src/object/level/parserparam.cpp')
-rw-r--r-- | src/object/level/parserparam.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object/level/parserparam.cpp b/src/object/level/parserparam.cpp index aa5a963..ee080b2 100644 --- a/src/object/level/parserparam.cpp +++ b/src/object/level/parserparam.cpp @@ -170,7 +170,7 @@ std::string CLevelParserParam::InjectLevelDir(std::string path, const std::strin boost::replace_all(newPath, "%lvl%", lvlDir); std::string chapDir = CLevelParser::BuildSceneName(CRobotMain::GetInstancePointer()->GetSceneName(), CRobotMain::GetInstancePointer()->GetSceneRank()/100, 0, false); boost::replace_all(newPath, "%chap%", chapDir); - if(newPath == path) + if(newPath == path && !path.empty()) { newPath = defaultDir + (!defaultDir.empty() ? "/" : "") + newPath; } |