32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
|
From b11754ec21f7b59c27c703fad2beccabc952d945 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Ricardo=20Lu=C3=ADs=20Vaz=20Silva?= <ricolvs123@gmail.com>
|
||
|
Date: Fri, 13 Jan 2023 19:37:20 -0300
|
||
|
Subject: [PATCH 16/51] Fix MapIterator<X, String>::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<typename I> void MapIteratorSetValue(I * self, expand_types_vm<typename
|
||
|
PARAM_SELF_STRUCT_PROLOGUE( FMapIterator_I32_Str ); \
|
||
|
ACTION_RETURN_INT( MapIteratorGetKey(self) ); \
|
||
|
} \
|
||
|
- DEFINE_ACTION_FUNCTION_NATIVE( FMapIterator_I32_Str , GetValue , MapIteratorGetValue< FMapIterator_I32_Str > ) \
|
||
|
+ 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
|
||
|
|