mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 16:24:35 +01:00
Merge pull request #201 from JeroenSack/master
Found a little inconsistency in window_find_by_id
This commit is contained in:
@@ -501,6 +501,7 @@ rct_window *window_find_by_id(rct_windowclass cls, rct_windownumber number)
|
||||
rct_window *w;
|
||||
|
||||
if (cls & 0x80) {
|
||||
cls &= ~0x80;
|
||||
for (w = RCT2_FIRST_WINDOW; w < RCT2_NEW_WINDOW; w++)
|
||||
if (w->classification == cls)
|
||||
return w;
|
||||
|
||||
Reference in New Issue
Block a user