Fix #4455: Crash in window_sign_invalidate due to original bug (#5969)

Add missing `& MAP_ELEMENT_LARGE_TYPE_MASK`
This commit is contained in:
Tomas Dittmann 2017-07-22 15:15:13 +02:00 committed by Ted John
parent 52372b7429
commit 32ffc194b9
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
------------------------------------------------------------------------
- Feature: [#5877] Allow up to 16 stations to be synchronised
- Fix: [#3589] Crash due to invalid footpathEntry in path_paint
- Fix: [#4455] Crash in window_sign_invalidate due to original bug
- Fix: [#4931] Crash in path_paint - footpathentry was null
- Fix: [#5768] Prevent loading non-existent title sequences.
- Fix: [#5858] Crash when using custom ride with no colour presets.

View File

@ -184,7 +184,7 @@ void window_sign_open(rct_windownumber number)
w->list_information_type = map_element->properties.scenerymultiple.colour[0] & 0x1F;
w->var_492 = map_element->properties.scenerymultiple.colour[1] & 0x1F;
w->var_48C = map_element->properties.scenerymultiple.type;
w->var_48C = map_element->properties.scenerymultiple.type & MAP_ELEMENT_LARGE_TYPE_MASK;
view_x += 16;
view_y += 16;