1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Add null checks throughout

This commit is contained in:
Gymnasiast
2020-07-17 00:32:47 +02:00
parent d703768d5d
commit 742ae947c7
4 changed files with 22 additions and 6 deletions

View File

@@ -34,6 +34,11 @@ using namespace OpenRCT2;
static void RideObjectUpdateRideType(rct_ride_entry* rideEntry)
{
if (rideEntry == nullptr)
{
return;
}
for (auto i = 0; i < MAX_RIDE_TYPES_PER_RIDE_ENTRY; i++)
{
auto oldRideType = rideEntry->ride_type[i];