mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use stack space instead of RCT2 string address
This commit is contained in:
parent
7fd3fd0004
commit
1c9164d3d3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue