diff --git a/src/windows/editor_object_selection.c b/src/windows/editor_object_selection.c index a4b212e6ed..1e0c228b56 100644 --- a/src/windows/editor_object_selection.c +++ b/src/windows/editor_object_selection.c @@ -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; }