Reduce code duplication

This commit is contained in:
Gymnasiast 2021-01-15 17:34:47 +01:00
parent 4fcc86f990
commit 19d113ae86
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 1 additions and 2 deletions

View File

@ -954,8 +954,6 @@ static void research_update_first_of_type(ResearchItem* researchItem)
if (!_seenRideType[rideType])
researchItem->flags |= RESEARCH_ENTRY_FLAG_FIRST_OF_TYPE;
_seenRideType[rideType] = true;
}
static void research_mark_ride_type_as_seen(const ResearchItem& researchItem)
@ -1018,5 +1016,6 @@ void research_determine_first_of_type()
}
research_update_first_of_type(&researchItem);
research_mark_ride_type_as_seen(researchItem);
}
}