Don't try setting null ride type as invented

This commit is contained in:
Michał Janiszewski 2018-02-07 11:58:25 +01:00 committed by Michał Janiszewski
parent 4732afa315
commit 441b7ebe71
1 changed files with 5 additions and 1 deletions

View File

@ -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]);
}
}
}
}