From a858efde399a4bcb59bb06890b534f5de9a76286 Mon Sep 17 00:00:00 2001 From: "seer-by-sentry[bot]" <157164994+seer-by-sentry[bot]@users.noreply.github.com> Date: Tue, 11 Nov 2025 17:19:40 +0000 Subject: [PATCH] Fix: Correctly format UnicodeString using format_va --- Generals/Code/GameEngine/Source/GameClient/GameText.cpp | 2 +- GeneralsMD/Code/GameEngine/Source/GameClient/GameText.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Generals/Code/GameEngine/Source/GameClient/GameText.cpp b/Generals/Code/GameEngine/Source/GameClient/GameText.cpp index 5b617b793cc..3c3425c277d 100644 --- a/Generals/Code/GameEngine/Source/GameClient/GameText.cpp +++ b/Generals/Code/GameEngine/Source/GameClient/GameText.cpp @@ -1374,7 +1374,7 @@ UnicodeString GameTextManager::fetchOrSubstituteFormatVA( const Char *label, con if (exists) { UnicodeString strFormat; - strFormat.format_va(strFormat.str(), args); + strFormat.format_va(str.str(), args); str = strFormat; } else diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GameText.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GameText.cpp index 012f01250e8..d0335fe2f2b 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/GameText.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GameText.cpp @@ -1374,7 +1374,7 @@ UnicodeString GameTextManager::fetchOrSubstituteFormatVA( const Char *label, con if (exists) { UnicodeString strFormat; - strFormat.format_va(strFormat.str(), args); + strFormat.format_va(str.str(), args); str = strFormat; } else