Various minor code cleanup tweaks

This commit is contained in:
Wojtek Figat
2023-06-09 23:26:37 +02:00
parent d798b10d4c
commit 7c55d50507
4 changed files with 9 additions and 31 deletions

View File

@@ -105,7 +105,6 @@ Asset::LoadResult Prefab::loadAsset()
// Allocate memory for objects
ObjectsIds.EnsureCapacity(objectsCount * 2);
NestedPrefabs.EnsureCapacity(objectsCount);
ObjectsDataCache.EnsureCapacity(objectsCount * 3);
// Find serialized object ids (actors and scripts), they are used later for IDs mapping on prefab spawning via PrefabManager
@@ -122,7 +121,6 @@ Asset::LoadResult Prefab::loadAsset()
}
ObjectsIds.Add(objectId);
ASSERT(!ObjectsDataCache.ContainsKey(objectId));
ObjectsDataCache.Add(objectId, &objData);
ObjectsCount++;