Fixed path composing bug with goto script

This commit is contained in:
tustin2121 2022-09-22 12:04:51 -04:00
parent 4c68c3cd77
commit e241cdd104

View file

@ -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);