mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Merge pull request #12372 from ZehMatt/path-underflow-warnings
Fix GetAdditionEntry trying obtain the object when no additions exist
This commit is contained in:
@@ -1529,6 +1529,8 @@ ObjectEntryIndex PathElement::GetAdditionEntryIndex() const
|
||||
|
||||
rct_scenery_entry* PathElement::GetAdditionEntry() const
|
||||
{
|
||||
if (!HasAddition())
|
||||
return nullptr;
|
||||
return get_footpath_item_entry(GetAdditionEntryIndex());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user