Merge pull request #1509 from YuriSizov/method-bind-is-off-by-one
Fix argument metadata when binding methodspull/1519/head
commit
6d939e6878
|
@ -132,7 +132,7 @@ public:
|
||||||
std::vector<GDExtensionClassMethodArgumentMetadata> vec;
|
std::vector<GDExtensionClassMethodArgumentMetadata> vec;
|
||||||
// First element is return value
|
// First element is return value
|
||||||
vec.reserve(argument_count + 1);
|
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));
|
vec.push_back(get_argument_metadata(i - 1));
|
||||||
}
|
}
|
||||||
return vec;
|
return vec;
|
||||||
|
|
Loading…
Reference in New Issue