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

Part of #11389: Use formatter class for Ride::FormatNameTo (#12041)

This commit is contained in:
frutiemax
2020-06-24 20:02:08 -04:00
committed by GitHub
parent a102892370
commit 14a07359b3
17 changed files with 130 additions and 77 deletions

View File

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