1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Fix #2326. Fixed research bugging out when going back to object selection

This commit is contained in:
duncanspumpkin
2015-11-23 18:25:43 +00:00
parent 5a9a372100
commit cba189c2de

View File

@@ -417,6 +417,12 @@ static void research_insert_researched(int entryIndex, int category)
{
rct_research_item *researchItem, *researchItem2;
researchItem = gResearchItems;
// First check to make sure that entry is not already accounted for
for (; researchItem->entryIndex != RESEARCHED_ITEMS_END; researchItem++) {
if (researchItem->entryIndex == entryIndex)
return;
}
researchItem = gResearchItems;
do {
if (researchItem->entryIndex == RESEARCHED_ITEMS_SEPARATOR) {