summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/gdscript/gd_script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/gdscript/gd_script.cpp b/script/gdscript/gd_script.cpp
index 5679e1e066..8f2da43e96 100644
--- a/script/gdscript/gd_script.cpp
+++ b/script/gdscript/gd_script.cpp
@@ -1416,7 +1416,7 @@ Error GDScript::reload() {
String basedir=path;
if (basedir=="")
- basedir==get_path();
+ basedir=get_path();
if (basedir!="")
basedir=basedir.get_base_dir();