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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user