Add nullifying item in WorldComponentPool<T>

This commit is contained in:
Karpik 2025-08-07 18:45:04 +03:00 committed by GitHub
parent 007ef493a8
commit c7b9dcdad7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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