1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 15:54:31 +01:00

Pass Ride* instead of ride_id_t

This commit is contained in:
Ted John
2019-01-20 14:54:59 +00:00
parent e361655b10
commit 9706dd8675
10 changed files with 67 additions and 66 deletions

View File

@@ -190,9 +190,9 @@ void game_command_set_ride_name(
#pragma endregion
#pragma region RideModifyAction
void ride_action_modify(ride_id_t rideIndex, int32_t modifyType, int32_t flags)
void ride_action_modify(Ride* ride, int32_t modifyType, int32_t flags)
{
auto gameAction = RideDemolishAction(rideIndex, modifyType);
auto gameAction = RideDemolishAction(ride->id, modifyType);
gameAction.SetFlags(flags);
GameActions::Execute(&gameAction);