1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Change static casts to EnumValue

This commit is contained in:
ζeh Matt
2021-09-08 17:07:41 +03:00
parent d21ccc103b
commit 516232e0a7
21 changed files with 59 additions and 59 deletions

View File

@@ -893,7 +893,7 @@ DukValue ScriptEngine::GameActionResultToDuk(const GameAction& action, const std
auto& rideCreateResult = static_cast<RideCreateGameActionResult&>(*result.get());
if (rideCreateResult.rideIndex != RIDE_ID_NULL)
{
obj.Set("ride", static_cast<int32_t>(rideCreateResult.rideIndex));
obj.Set("ride", EnumValue(rideCreateResult.rideIndex));
}
}
else if (action.GetType() == GameCommand::HireNewStaffMember)