1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Always try mapping footpaths for .park files

This commit is contained in:
Michael Steenbeek
2025-07-04 18:54:18 +02:00
committed by GitHub
parent b77aa9a956
commit 31d2092b69
6 changed files with 33 additions and 30 deletions

View File

@@ -148,10 +148,12 @@ const ObjectEntryDescriptor& ObjectList::GetObject(ObjectType type, ObjectEntryI
return placeholder;
}
void ObjectList::Add(const ObjectEntryDescriptor& entry)
ObjectEntryIndex ObjectList::Add(const ObjectEntryDescriptor& entry)
{
auto& subList = GetList(entry.GetType());
auto index = subList.size();
subList.push_back(entry);
return static_cast<ObjectEntryIndex>(index);
}
void ObjectList::SetObject(ObjectEntryIndex index, const ObjectEntryDescriptor& entry)