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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user