mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 13:03:11 +01:00
Name structs in union to fix error
Nameless structs inside unions cannot have non-standard types, even if they are trivially constructable and standard aligned. In C++, structs need to be named.
This commit is contained in:
@@ -329,7 +329,7 @@ private:
|
||||
track_type_t TrackType;
|
||||
union
|
||||
{
|
||||
struct
|
||||
struct URide
|
||||
{
|
||||
uint8_t Sequence;
|
||||
uint8_t ColourScheme;
|
||||
@@ -343,11 +343,11 @@ private:
|
||||
uint8_t BrakeBoosterSpeed;
|
||||
};
|
||||
StationIndex stationIndex;
|
||||
};
|
||||
struct
|
||||
} URide;
|
||||
struct UMaze
|
||||
{
|
||||
uint16_t MazeEntry; // 6
|
||||
};
|
||||
} UMaze;
|
||||
};
|
||||
uint8_t Flags2;
|
||||
RideId RideIndex;
|
||||
|
||||
Reference in New Issue
Block a user