1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00

Fix #17553: Crash when moving invention list items to empty list (#17555)

* Fix content check

* Add change log entry

Co-authored-by: Duncan <duncans_pumpkin@hotmail.co.uk>
This commit is contained in:
Henry Cheng
2022-07-17 03:12:29 -04:00
committed by GitHub
parent 37a38af6a5
commit 3bad01a704
3 changed files with 3 additions and 1 deletions

View File

@@ -618,7 +618,7 @@ public:
{
res = inventionListWindow->GetResearchItemAt(newScreenCoords);
newScreenCoords.y += LIST_ROW_HEIGHT;
} while (res.has_value() && res->research->IsAlwaysResearched());
} while (res.has_value() && res->research != nullptr && res->research->IsAlwaysResearched());
if (res.has_value())
{