Fix #4231. Ride colour issue caused by overlapping vars.

By using a union instead of a struct var_494 and var_496 where ontop of the same location this meant var_496 when written to would overwrite ride_colour that was also in a union with var_494/496. This in turn would cause the wrong ride_colour to be overwritten when using the colour picker.
This commit is contained in:
duncanspumpkin 2016-08-06 08:03:57 +01:00
parent 1abc4a1915
commit dd7e988f08
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ typedef struct rct_window {
rct_research_item* research_item;
rct_object_entry* object_entry;
scenario_index_entry* highlighted_scenario;
union {
struct {
uint16 var_494;
uint16 var_496;
};