1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Use stack space instead of RCT2 string address

This commit is contained in:
Ted John
2016-09-05 22:34:07 +01:00
parent 7fd3fd0004
commit 1c9164d3d3

View File

@@ -1631,8 +1631,9 @@ static int window_editor_object_selection_select_object(uint8 bh, int flags, con
}
if (bh != 0 && !(flags & (1 << 1))) {
object_create_identifier_name(RCT2_ADDRESS(0x009BC95A, char), &item->ObjectEntry);
set_format_arg(0, uint32, 0x009BC95A);
char objectName[64];
object_create_identifier_name(objectName, &item->ObjectEntry);
set_format_arg(0, const char *, objectName);
set_object_selection_error(bh, STR_OBJECT_SELECTION_ERR_SHOULD_SELECT_X_FIRST);
return 0;
}