Add nullifying item in WorldComponentPool<T>

This commit is contained in:
Karpik 2025-07-28 20:33:42 +04:00
parent 007ef493a8
commit 551709432c

View File

@ -241,6 +241,7 @@ namespace DCFApixels.DragonECS
{
Array.Resize(ref _recycledItems, _recycledItems.Length << 1);
}
_items[itemIndex] = default;
_recycledItems[_recycledItemsCount++] = itemIndex;
itemIndex = 0;
}