summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_function.h
diff options
context:
space:
mode:
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());