Fixed path composing bug with goto script
This commit is contained in:
parent
4c68c3cd77
commit
e241cdd104
1 changed files with 1 additions and 1 deletions
|
@ -2371,7 +2371,7 @@ QString Project::getScriptDefaultString(bool usePoryScript, QString mapName) con
|
|||
|
||||
QString Project::getMapScriptsFilePath(const QString &mapName) const {
|
||||
const bool usePoryscript = projectConfig.getUsePoryScript();
|
||||
auto path = QDir::cleanPath(root + projectConfig.getFilePath(ProjectFilePath::data_map_folders) + mapName + "/scripts");
|
||||
auto path = QDir::cleanPath(root + "/" + projectConfig.getFilePath(ProjectFilePath::data_map_folders) + "/" + mapName + "/scripts");
|
||||
auto extension = getScriptFileExtension(usePoryscript);
|
||||
if (usePoryscript && !QFile::exists(path + extension))
|
||||
extension = getScriptFileExtension(false);
|
||||
|
|
Loading…
Reference in a new issue