mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Fix #14312: Research ride type message incorrect
In some cases, researching a new ride type appeared as a new vehicle instead.
This commit is contained in:
parent
47d040226b
commit
69721e66f7
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
0.4.3 (in development)
|
||||
------------------------------------------------------------------------
|
||||
- Fix: [#14312] Research ride type message incorrect.
|
||||
|
||||
0.4.2 (2022-10-05)
|
||||
------------------------------------------------------------------------
|
||||
|
|
|
@ -1028,7 +1028,8 @@ void research_determine_first_of_type()
|
|||
for (auto& researchItem : gResearchItemsUninvented)
|
||||
{
|
||||
// The next research item is (sometimes?) also present in gResearchItemsUninvented
|
||||
if (gResearchNextItem.has_value() && !gResearchNextItem->IsNull() && researchItem == gResearchNextItem.value())
|
||||
if (gResearchNextItem.has_value() && !gResearchNextItem->IsNull()
|
||||
&& researchItem.baseRideType == gResearchNextItem.value().baseRideType)
|
||||
{
|
||||
// Copy the "first of type" flag.
|
||||
researchItem.flags = gResearchNextItem->flags;
|
||||
|
|
Loading…
Reference in a new issue