summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2018-07-25 11:41:27 -0300
committerGeorge Marques <george@gmarqu.es>2018-07-25 20:50:11 -0300
commitcd6ad5462c59a9f7545e252e0fecd65dd4c0eda7 (patch)
tree6ecaa5138519c71dcc7e45ebb6552a7ad254e8a7 /modules
parent65c069c8d9925aab870f7778591eb60cca85b214 (diff)
GDScript: Fix returned value of get_default_argument_count()
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_function.cpp b/modules/gdscript/gdscript_function.cpp
index ec346a6b46..6561071c5d 100644
--- a/modules/gdscript/gdscript_function.cpp
+++ b/modules/gdscript/gdscript_function.cpp
@@ -1579,7 +1579,7 @@ StringName GDScriptFunction::get_global_name(int p_idx) const {
int GDScriptFunction::get_default_argument_count() const {
- return default_arguments.size();
+ return _default_arg_count;
}
int GDScriptFunction::get_default_argument_addr(int p_idx) const {