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
1 changed files with 1 additions and 0 deletions

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;