1
0
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:
Hielke Morsink
2022-01-26 23:17:02 +01:00
committed by ζeh Matt
parent f47c1b9f96
commit e756c46b44

View File

@@ -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;