mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Iterate over windows backwards to close last window; fixes #932
This commit is contained in:
@@ -594,7 +594,7 @@ void window_close_top()
|
||||
if (RCT2_GLOBAL(0x0141F570, uint8) != 1)
|
||||
return;
|
||||
|
||||
for (w = g_window_list; w < RCT2_LAST_WINDOW; w++) {
|
||||
for (w = RCT2_NEW_WINDOW - 1; w >= g_window_list; w--) {
|
||||
if (!(w->flags & (WF_STICK_TO_BACK | WF_STICK_TO_FRONT))) {
|
||||
window_close(w);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user