From 441b7ebe710d744972832fa37752a808093fc609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 7 Feb 2018 11:58:25 +0100 Subject: [PATCH] Don't try setting null ride type as invented --- src/openrct2/management/Research.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/openrct2/management/Research.cpp b/src/openrct2/management/Research.cpp index 18d8698ba1..00a50a4519 100644 --- a/src/openrct2/management/Research.cpp +++ b/src/openrct2/management/Research.cpp @@ -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]); + } } } }