1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Add missing check for valid scenery type (#11067)

This commit is contained in:
Michał Janiszewski
2020-03-26 22:44:41 +01:00
committed by GitHub
parent cfb405f0ed
commit 5276ce767a

View File

@@ -601,6 +601,7 @@ void ride_entry_set_invented(int32_t rideEntryIndex)
bool scenery_is_invented(const ScenerySelection& sceneryItem)
{
assert(sceneryItem.SceneryType < SCENERY_TYPE_COUNT);
return _researchedSceneryItems[sceneryItem.SceneryType][sceneryItem.EntryIndex];
}