From 9a322737cc632753bc68386cc5813a8427961c9a 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()` (cherry picked from commit b14f359c941b9c16643e9cbbdda504802b4b440c) --- 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 7fbf2d00a16..9403384befa 100644 --- a/core/extension/gdextension_interface.cpp +++ b/core/extension/gdextension_interface.cpp @@ -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; }