aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_function.cpp
diff options
context:
space:
mode:
authorThaer Razeq2017-02-23 02:28:09 -0600
committerREBELLIOUSX\Rebel_X2017-02-28 07:52:02 -0600
commitf50488a36188d5975bfa8554687a1acdd394d6a9 (patch)
tree3b8712b9162aeb30e8eaaeeca63e6d04c7b9e3b5 /modules/gdscript/gd_function.cpp
parent0f8c6dd3822c38b8145f08265abb9eba479f4d15 (diff)
downloadgodot-f50488a36188d5975bfa8554687a1acdd394d6a9.tar.gz
godot-f50488a36188d5975bfa8554687a1acdd394d6a9.tar.zst
godot-f50488a36188d5975bfa8554687a1acdd394d6a9.zip
Diffstat (limited to 'modules/gdscript/gd_function.cpp')
-rw-r--r--modules/gdscript/gd_function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_function.cpp b/modules/gdscript/gd_function.cpp
index 31bac2748..0c72f6d18 100644
--- a/modules/gdscript/gd_function.cpp
+++ b/modules/gdscript/gd_function.cpp
@@ -725,7 +725,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
err.argument-=1;
}
}
- } if (methodstr=="free") {
+ } else if (methodstr=="free") {
if (err.error==Variant::CallError::CALL_ERROR_INVALID_METHOD) {