summaryrefslogtreecommitdiff
path: root/modules/visual_script
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-12-10 08:25:31 +0100
committerGitHub <noreply@github.com>2019-12-10 08:25:31 +0100
commit2845e6a21a9a1b7c8bf64dc49575213141a68832 (patch)
treeb4f82b8b4b733aa37dd877a0867a441d67a68d15 /modules/visual_script
parent16fc023d4487c2a3f26b5bdd3827628de2cd0ba2 (diff)
parented1c4bc77db88fa0f8f599ca2d3c4b533a94a654 (diff)
Merge pull request #34040 from qarmin/unused_variable_more_precise_numbers
Removed unused variables, add some constants numbers
Diffstat (limited to 'modules/visual_script')
-rw-r--r--modules/visual_script/visual_script_nodes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/visual_script/visual_script_nodes.cpp b/modules/visual_script/visual_script_nodes.cpp
index 857d640b43..2a8d67d403 100644
--- a/modules/visual_script/visual_script_nodes.cpp
+++ b/modules/visual_script/visual_script_nodes.cpp
@@ -1290,7 +1290,7 @@ public:
if (!instance->get_variable(variable, p_outputs[0])) {
r_error.error = Variant::CallError::CALL_ERROR_INVALID_METHOD;
r_error_str = RTR("VariableGet not found in script: ") + "'" + String(variable) + "'";
- return false;
+ return 0;
}
return 0;
}