From 1c9164d3d3e2080478dae594b4c01ced0711aa83 Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 5 Sep 2016 22:34:07 +0100 Subject: [PATCH] Use stack space instead of RCT2 string address --- src/windows/editor_object_selection.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }