1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Fix ownership of loaded object data

This commit is contained in:
ζeh Matt
2021-09-03 13:43:06 +03:00
parent b2d0b54d13
commit 1f4f0c015c
4 changed files with 142 additions and 157 deletions

View File

@@ -81,7 +81,7 @@ void SceneryGroupObject::UpdateEntryIndexes()
if (ori->LoadedObject == nullptr)
continue;
auto entryIndex = objectManager.GetLoadedObjectEntryIndex(ori->LoadedObject);
auto entryIndex = objectManager.GetLoadedObjectEntryIndex(ori->LoadedObject.get());
Guard::Assert(entryIndex != OBJECT_ENTRY_INDEX_NULL, GUARD_LINE);
auto sceneryType = ori->ObjectEntry.GetSceneryType();