Skip to content

Commit a858efd

Browse files
Fix: Correctly format UnicodeString using format_va
1 parent 9f7a45e commit a858efd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Generals/Code/GameEngine/Source/GameClient/GameText.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ UnicodeString GameTextManager::fetchOrSubstituteFormatVA( const Char *label, con
13741374
if (exists)
13751375
{
13761376
UnicodeString strFormat;
1377-
strFormat.format_va(strFormat.str(), args);
1377+
strFormat.format_va(str.str(), args);
13781378
str = strFormat;
13791379
}
13801380
else

GeneralsMD/Code/GameEngine/Source/GameClient/GameText.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ UnicodeString GameTextManager::fetchOrSubstituteFormatVA( const Char *label, con
13741374
if (exists)
13751375
{
13761376
UnicodeString strFormat;
1377-
strFormat.format_va(strFormat.str(), args);
1377+
strFormat.format_va(str.str(), args);
13781378
str = strFormat;
13791379
}
13801380
else

0 commit comments

Comments
 (0)