aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_parser.cpp
diff options
context:
space:
mode:
authorreduz2014-03-12 08:45:07 -0700
committerreduz2014-03-12 08:45:07 -0700
commit777c045bfc165e9dfe20749b02a8ad630218e317 (patch)
treed98d34820f2357ebfa3b1c2871bb86419bb9ba4d /modules/gdscript/gd_parser.cpp
parentc7a03a064845201be871395f5475c436dc520ac6 (diff)
parent4927acd7ad718cb7b3f720bb48742928393160e3 (diff)
downloadgodot-777c045bfc165e9dfe20749b02a8ad630218e317.tar.gz
godot-777c045bfc165e9dfe20749b02a8ad630218e317.tar.zst
godot-777c045bfc165e9dfe20749b02a8ad630218e317.zip
Merge pull request #189 from sanikoyes/hotfix-ime
Merging!
Diffstat (limited to 'modules/gdscript/gd_parser.cpp')
-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 fb4f56aa8..f962f8c5f 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()) {