mirror of https://github.com/OpenRCT2/OpenRCT2.git
bug in window_find_by_id
Looking at the assembly it seems there is an inconsistency in the code.
This commit is contained in:
parent
194326817b
commit
540bbc18b4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue