mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 04:23:20 +01:00
bug in window_find_by_id
Looking at the assembly it seems there is an inconsistency in the code.
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