From b11754ec21f7b59c27c703fad2beccabc952d945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Lu=C3=ADs=20Vaz=20Silva?= Date: Fri, 13 Jan 2023 19:37:20 -0300 Subject: [PATCH 16/51] Fix MapIterator::GetValue --- src/common/scripting/core/maps.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/scripting/core/maps.cpp b/src/common/scripting/core/maps.cpp index 28fda643e..68eab6d3d 100644 --- a/src/common/scripting/core/maps.cpp +++ b/src/common/scripting/core/maps.cpp @@ -438,10 +438,12 @@ template void MapIteratorSetValue(I * self, expand_types_vm ) \ + DEFINE_ACTION_FUNCTION_NATIVE( FMapIterator_I32_Str , GetValue , MapIteratorGetValueString< FMapIterator_I32_Str > ) \ { \ PARAM_SELF_STRUCT_PROLOGUE( FMapIterator_I32_Str ); \ - ACTION_RETURN_STRING( MapIteratorGetValue(self) ); \ + FString out; \ + MapIteratorGetValueString(self , out); \ + ACTION_RETURN_STRING( out ); \ } #define DEF_MAP_IT_S_S() \ -- 2.39.3