Prevent a crash when bad data passed

This commit is contained in:
duncanspumpkin committed 2019-03-18 21:50:29 +00:00
1 parent 576976627e
commit d5fa7185ca
1 file changed
+5 -2
@@ -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);
}
}
}
}