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

(cherry picked from commit b14f359c94)
This commit is contained in:
David Snopek 2023-10-20 10:07:46 -05:00 committed by Yuri Sizov
parent 9e315e7c79
commit 9a322737cc
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ static void gdextension_variant_iter_get(GDExtensionConstVariantPtr p_self, GDEx
Variant *iter = (Variant *)r_iter;
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;
}