mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Prevent a crash when bad data passed
This commit is contained in:
@@ -417,8 +417,11 @@ static int32_t cc_rides(InteractiveConsole& console, const arguments_t& argv)
|
||||
{
|
||||
console.WriteFormatLine("This command expects the string all or two integer arguments");
|
||||
}
|
||||
auto rideSetPrice = RideSetPriceAction(rideId, price, true);
|
||||
GameActions::Execute(&rideSetPrice);
|
||||
else
|
||||
{
|
||||
auto rideSetPrice = RideSetPriceAction(rideId, price, true);
|
||||
GameActions::Execute(&rideSetPrice);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user