1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Make the CI happy

This commit is contained in:
Matt
2019-07-27 16:10:53 +02:00
parent 8ab0ca4f8f
commit 26535862e1

View File

@@ -138,10 +138,10 @@ void CheatsSerialise(DataSerialiser& ds)
for (uint16_t i = 0; i < count; i++)
{
CheatType type;
ds << reinterpret_cast<int32_t&>(type);
int32_t type = 0;
ds << type;
switch (type)
switch (static_cast<CheatType>(type))
{
case CheatType::SandboxMode:
ds << gCheatsSandboxMode;
@@ -206,6 +206,8 @@ void CheatsSerialise(DataSerialiser& ds)
case CheatType::EnableAllDrawableTrackPieces:
ds << gCheatsEnableAllDrawableTrackPieces;
break;
default:
break;
}
}
}