summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/method_bind.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/godot_cpp/core/method_bind.hpp')
-rw-r--r--include/godot_cpp/core/method_bind.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/godot_cpp/core/method_bind.hpp b/include/godot_cpp/core/method_bind.hpp
index eabd6ec..f2da66c 100644
--- a/include/godot_cpp/core/method_bind.hpp
+++ b/include/godot_cpp/core/method_bind.hpp
@@ -132,7 +132,7 @@ public:
std::vector<GDExtensionClassMethodArgumentMetadata> vec;
// First element is return value
vec.reserve(argument_count + 1);
- for (int i = 0; i < argument_count; i++) {
+ for (int i = 0; i < argument_count + 1; i++) {
vec.push_back(get_argument_metadata(i - 1));
}
return vec;