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:
committed by
GitHub
parent
cfb405f0ed
commit
5276ce767a
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user