mirror of https://github.com/OpenRCT2/OpenRCT2.git
Prevent a crash when bad data passed
This commit is contained in:
parent
576976627e
commit
d5fa7185ca
|
@ -417,12 +417,15 @@ static int32_t cc_rides(InteractiveConsole& console, const arguments_t& argv)
|
||||||
{
|
{
|
||||||
console.WriteFormatLine("This command expects the string all or two integer arguments");
|
console.WriteFormatLine("This command expects the string all or two integer arguments");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
auto rideSetPrice = RideSetPriceAction(rideId, price, true);
|
auto rideSetPrice = RideSetPriceAction(rideId, price, true);
|
||||||
GameActions::Execute(&rideSetPrice);
|
GameActions::Execute(&rideSetPrice);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
console.WriteFormatLine("subcommands: list, set");
|
console.WriteFormatLine("subcommands: list, set");
|
||||||
|
|
Loading…
Reference in New Issue