1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Fix inverted condition

This commit is contained in:
Michael Steenbeek
2021-03-12 23:05:30 +01:00
committed by GitHub
parent 87dc006b8c
commit 1b5c7dc1c7

View File

@@ -200,7 +200,7 @@ void research_finish_item(ResearchItem* researchItem)
if (rideEntry != nullptr && base_ride_type != RIDE_TYPE_NULL)
{
if (RideTypeIsValid(base_ride_type))
if (!RideTypeIsValid(base_ride_type))
{
log_warning("Invalid ride type: %d", base_ride_type);
base_ride_type = ride_entry_get_first_non_null_ride_type(rideEntry);