mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 01:04:50 +01:00
Modify object loading for JSON-only objects
This commit is contained in:
@@ -694,7 +694,7 @@ static void window_editor_object_selection_scroll_mousedown(
|
||||
|
||||
if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)
|
||||
{
|
||||
if (!window_editor_object_selection_select_object(0, INPUT_FLAG_EDITOR_OBJECT_SELECT, listItem->entry))
|
||||
if (!window_editor_object_selection_select_object(0, INPUT_FLAG_EDITOR_OBJECT_SELECT, listItem->repositoryItem))
|
||||
return;
|
||||
|
||||
// Close any other open windows such as options/colour schemes to prevent a crash.
|
||||
@@ -712,7 +712,7 @@ static void window_editor_object_selection_scroll_mousedown(
|
||||
flags |= INPUT_FLAG_EDITOR_OBJECT_SELECT;
|
||||
|
||||
_maxObjectsWasHit = false;
|
||||
if (!window_editor_object_selection_select_object(0, flags, listItem->entry))
|
||||
if (!window_editor_object_selection_select_object(0, flags, listItem->repositoryItem))
|
||||
{
|
||||
rct_string_id error_title = (flags & INPUT_FLAG_EDITOR_OBJECT_SELECT) ? STR_UNABLE_TO_SELECT_THIS_OBJECT
|
||||
: STR_UNABLE_TO_DE_SELECT_THIS_OBJECT;
|
||||
|
||||
Reference in New Issue
Block a user