1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Part of #11389 : in peep class, FormatTo* use Formatter class (#12035)

This commit is contained in:
frutiemax
2020-06-23 09:52:08 -04:00
committed by GitHub
parent 32c342e88d
commit 6e47385b90
10 changed files with 52 additions and 45 deletions

View File

@@ -627,7 +627,8 @@ static void window_title_command_editor_tool_down(
if (peep != nullptr)
{
uint8_t formatArgs[32]{};
peep->FormatNameTo(formatArgs);
Formatter ft(formatArgs);
peep->FormatNameTo(ft);
format_string(command.SpriteName, USER_STRING_MAX_LENGTH, STR_STRINGID, &peep->Id);
}
}