mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-07 07:04:36 +01:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user