From 540bbc18b4b4d8b44b77db68d73834d892a6d65c Mon Sep 17 00:00:00 2001 From: Jeroen Sack Date: Wed, 9 Jul 2014 23:03:55 +0200 Subject: [PATCH] bug in window_find_by_id Looking at the assembly it seems there is an inconsistency in the code. --- src/window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window.c b/src/window.c index 541601a529..0dd580b409 100644 --- a/src/window.c +++ b/src/window.c @@ -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;