mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
1abc4a1915
commit
dd7e988f08
|
@ -282,7 +282,7 @@ typedef struct rct_window {
|
||||||
rct_research_item* research_item;
|
rct_research_item* research_item;
|
||||||
rct_object_entry* object_entry;
|
rct_object_entry* object_entry;
|
||||||
scenario_index_entry* highlighted_scenario;
|
scenario_index_entry* highlighted_scenario;
|
||||||
union {
|
struct {
|
||||||
uint16 var_494;
|
uint16 var_494;
|
||||||
uint16 var_496;
|
uint16 var_496;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue