Don't try setting null ride type as invented

This commit is contained in:
Michał Janiszewski authored and Michał Janiszewski committed 2018-02-10 13:07:52 +01:00
1 parent 4732afa315
commit 441b7ebe71
1 file changed
+5 -1
+5 -1
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]);
}
}
}
}