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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user