summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_function.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-23 00:06:29 +0200
committerGitHub <noreply@github.com>2017-08-23 00:06:29 +0200
commitbc3c9a3c2aea7a4781f1319d05056ad8db19178e (patch)
treea666374b1a0a26fb7cbbccc0549c83a898925c8f /modules/gdscript/gd_function.h
parent172519bec6499d2d7b52875c1bfb685c7df2278f (diff)
parentbaa94a375858e80bf9424fd895e3384edb4e114c (diff)
Merge pull request #10555 from Rubonnek/removed-unnecessary-returns-and-breaks
Removed unnecessary returns and break statements [ci skip]
Diffstat (limited to 'modules/gdscript/gd_function.h')
-rw-r--r--modules/gdscript/gd_function.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gd_function.h b/modules/gdscript/gd_function.h
index 6d20b19777..661de0acce 100644
--- a/modules/gdscript/gd_function.h
+++ b/modules/gdscript/gd_function.h
@@ -210,8 +210,9 @@ public:
#ifdef TOOLS_ENABLED
ERR_FAIL_INDEX_V(p_idx, arg_names.size(), StringName());
return arg_names[p_idx];
-#endif
+#else
return StringName();
+#endif
}
Variant get_default_argument(int p_idx) const {
ERR_FAIL_INDEX_V(p_idx, default_arguments.size(), Variant());