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

Replace usage of set_format_arg by Formatter::Common() (#11412)

This commit is contained in:
Breno Rodrigues Guimarães
2020-04-25 18:44:14 -03:00
committed by GitHub
parent d0aa3c3921
commit a0619d04cf
10 changed files with 47 additions and 35 deletions

View File

@@ -506,7 +506,8 @@ int32_t window_editor_object_selection_select_object(uint8_t bh, int32_t flags,
{
char objectName[64];
object_create_identifier_name(objectName, 64, &item->ObjectEntry);
set_format_arg(0, const char*, objectName);
auto ft = Formatter::Common();
ft.Add<const char*>(objectName);
set_object_selection_error(bh, STR_OBJECT_SELECTION_ERR_SHOULD_SELECT_X_FIRST);
return 0;
}