1
0
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:
Jeroen Sack
2014-07-09 23:03:55 +02:00
parent 194326817b
commit 540bbc18b4

View File

@@ -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;