From b14f359c941b9c16643e9cbbdda504802b4b440c Mon Sep 17 00:00:00 2001 From: David Snopek Date: Fri, 20 Oct 2023 10:07:46 -0500 Subject: [PATCH] GDExtension: Fix `variant_iter_get()` actually calling `iter_next()` --- core/extension/gdextension_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/extension/gdextension_interface.cpp b/core/extension/gdextension_interface.cpp index 843f9ceecfc..d1b4e6a30f2 100644 --- a/core/extension/gdextension_interface.cpp +++ b/core/extension/gdextension_interface.cpp @@ -400,7 +400,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; }