mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 07:44:38 +01:00
Fix Object Selection not freeing the object when unhovering
Fixes a double-free on previews.
This commit is contained in:
@@ -757,7 +757,10 @@ static void window_editor_object_selection_scroll_mouseover(
|
||||
w->selected_list_item = selectedObject;
|
||||
|
||||
if (_loadedObject != nullptr)
|
||||
{
|
||||
_loadedObject->Unload();
|
||||
_loadedObject = nullptr;
|
||||
}
|
||||
|
||||
if (selectedObject == -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user