summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorsanikoyes <sanikoyes@163.com>2014-03-11 13:30:33 +0800
committersanikoyes <sanikoyes@163.com>2014-03-11 13:30:33 +0800
commitcde48d0c9c16867edbb4fc4e3c186933564b6da0 (patch)
tree5025ecb431134ce2b397e600e73628360de9c3fa /modules/gdscript
parent101112d6fddee3d6dc4abd8b3f43de24a91cb0a7 (diff)
fix gdscript path parse error
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gd_parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp
index fb4f56aa8f..f962f8c5fb 100644
--- a/modules/gdscript/gd_parser.cpp
+++ b/modules/gdscript/gd_parser.cpp
@@ -215,6 +215,7 @@ GDParser::Node* GDParser::_parse_expression(Node *p_parent,bool p_static,bool p_
String path = tokenizer->get_token_constant();
if (!path.is_abs_path() && base_path!="")
path=base_path+"/"+path;
+ path = path.replace("///","//");
Ref<Resource> res = ResourceLoader::load(path);
if (!res.is_valid()) {