mirror of https://github.com/OpenRCT2/OpenRCT2.git
Iterate over windows backwards to close last window; fixes #932
This commit is contained in:
parent
cd16af0f60
commit
3a6fcf790c
|
@ -594,7 +594,7 @@ void window_close_top()
|
||||||
if (RCT2_GLOBAL(0x0141F570, uint8) != 1)
|
if (RCT2_GLOBAL(0x0141F570, uint8) != 1)
|
||||||
return;
|
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))) {
|
if (!(w->flags & (WF_STICK_TO_BACK | WF_STICK_TO_FRONT))) {
|
||||||
window_close(w);
|
window_close(w);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue