mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix Object Selection not freeing the object when unhovering
Fixes a double-free on previews.
This commit is contained in:
parent
15897c23a1
commit
3e64a227e5
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue