GDExtension: Fix `variant_iter_get()` actually calling `iter_next()`

This commit is contained in:
David Snopek 2023-10-20 10:07:46 -05:00
parent f333e4acf5
commit b14f359c94
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ static void gdextension_variant_iter_get(GDExtensionConstVariantPtr p_self, GDEx
Variant *iter = (Variant *)r_iter; Variant *iter = (Variant *)r_iter;
bool valid; bool valid;
memnew_placement(r_ret, Variant(self->iter_next(*iter, valid))); memnew_placement(r_ret, Variant(self->iter_get(*iter, valid)));
*r_valid = valid; *r_valid = valid;
} }