From df3bf4fbc1aac00821a654b7a0753ba789c1fcde Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 04:06:18 +0000 Subject: [PATCH] Decompile fn_18373 (?TransformFields@?A0x53de2d62@@YA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@ABV23@@Z) Batch #13006 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_18373 ?TransformFields@?A0x53de2d62@@YA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@ABV23@@Z: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/MessageTable.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Contents/MessageTable.cpp b/Source/Contents/MessageTable.cpp index d2c8a387..cf26fe15 100644 --- a/Source/Contents/MessageTable.cpp +++ b/Source/Contents/MessageTable.cpp @@ -4759,8 +4759,11 @@ namespace { // FUNCTION: fn_18373 std::vector TransformFields(const std::vector& row) { std::vector result; - result.reserve(row.size()); - for (std::string text : row) { + if (!row.empty()) { + result.reserve(row.size()); + } + for (auto it = row.begin(); it != row.end(); ++it) { + std::string text = *it; if (text.empty()) { text = "NO MSG"; } else {