mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
Add nullifying item in WorldComponentPool<T>
This commit is contained in:
parent
007ef493a8
commit
c7b9dcdad7
@ -241,6 +241,7 @@ namespace DCFApixels.DragonECS
|
||||
{
|
||||
Array.Resize(ref _recycledItems, _recycledItems.Length << 1);
|
||||
}
|
||||
_items[itemIndex] = default;
|
||||
_recycledItems[_recycledItemsCount++] = itemIndex;
|
||||
itemIndex = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user