mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Don't try setting null ride type as invented
This commit is contained in:
committed by
Michał Janiszewski
parent
4732afa315
commit
441b7ebe71
@@ -940,7 +940,11 @@ void research_fix()
|
||||
|
||||
for (uint8 j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++)
|
||||
{
|
||||
ride_type_set_invented(rideEntry->ride_type[j]);
|
||||
uint32 rideType = rideEntry->ride_type[j];
|
||||
if (rideType != RIDE_TYPE_NULL)
|
||||
{
|
||||
ride_type_set_invented(rideEntry->ride_type[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user