summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
diff options
context:
space:
mode:
authorNils ANDRÉ-CHANG <nils.andre.chang@gmail.com>2019-06-16 13:31:57 +0100
committerNils ANDRÉ-CHANG <nils.andre.chang@gmail.com>2019-06-23 13:33:50 +0100
commitd2833d4f4d891b6a0ee32a04f9d32a410b998b93 (patch)
tree3e1ce371e8edfb4f30571adb1e3c2b0b4a0a3389 /modules/gdscript/gdscript_parser.cpp
parentf410e7a8a9b14fd9f5c210afcc9e3519e9ce246d (diff)
downloadredot-engine-d2833d4f4d891b6a0ee32a04f9d32a410b998b93.tar.gz
Replace ` + "/" + ` with `String::file_add()`
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r--modules/gdscript/gdscript_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index ec3e72eef7..fcdfd4ec98 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -463,7 +463,7 @@ GDScriptParser::Node *GDScriptParser::_parse_expression(Node *p_parent, bool p_s
}
if (!path.is_abs_path() && base_path != "")
- path = base_path + "/" + path;
+ path = base_path.plus_file(path);
path = path.replace("///", "//").simplify_path();
if (path == self_path) {