mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 15:23:01 +01:00
Prevent closing object selection window when selection is invalid (#23487)
* Prevent closing object selection window when selection is invalid * Ride window: remove superfluous virtual keyword from event signatures * Amend changelog
This commit is contained in:
@@ -227,6 +227,12 @@ void WindowSetWindowLimit(int32_t value)
|
||||
*/
|
||||
void WindowClose(WindowBase& w)
|
||||
{
|
||||
if (!w.CanClose())
|
||||
{
|
||||
// Something's preventing this window from closing -- bail out early
|
||||
return;
|
||||
}
|
||||
|
||||
w.OnClose();
|
||||
|
||||
// Remove viewport
|
||||
|
||||
Reference in New Issue
Block a user