code cleanup

This commit is contained in:
Mikhail 2024-09-11 10:37:18 +08:00
parent b38b23913a
commit 7404ea29d7
2 changed files with 1 additions and 3 deletions

View File

@ -3,7 +3,6 @@ using DCFApixels.DragonECS.PoolsCore;
using System;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
namespace DCFApixels.DragonECS
{

View File

@ -3,7 +3,6 @@ using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
namespace DCFApixels.DragonECS
{
@ -153,7 +152,7 @@ namespace DCFApixels.DragonECS
if (itemIndex != 0)
{
_interface.OnDestroy(ref _items[itemIndex], _worlds[worldID]);
if(_recycledItemsCount >= _recycledItems.Length)
if (_recycledItemsCount >= _recycledItems.Length)
{
Array.Resize(ref _recycledItems, _recycledItems.Length << 1);
}