1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Add nullptr checks for more instances of get_ride (#9819)

This commit is contained in:
Ted John
2019-08-09 14:20:59 +01:00
committed by GitHub
parent 93789b9034
commit 9954f0b725
56 changed files with 475 additions and 307 deletions

View File

@@ -208,7 +208,7 @@ static int32_t cc_rides(InteractiveConsole& console, const arguments_t& argv)
}
else
{
Ride* ride = get_ride(ride_index);
auto ride = get_ride(ride_index);
if (mode <= 0 || mode > (RIDE_MODE_COUNT - 1))
{
console.WriteFormatLine("Invalid ride mode.");