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

Cast fixes

This commit is contained in:
ZehMatt
2021-08-02 07:24:52 +03:00
committed by ζeh Matt
parent 49bbc0f854
commit 3ad72baaae
29 changed files with 256 additions and 221 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", rideCreateResult.rideIndex);
obj.Set("ride", static_cast<int32_t>(rideCreateResult.rideIndex));
}
}
else if (action.GetType() == GameCommand::HireNewStaffMember)