mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
fix
This commit is contained in:
parent
9f8861dff4
commit
a8e550d6f5
@ -1010,10 +1010,10 @@ namespace DCFApixels.DragonECS
|
||||
{
|
||||
if ((chunk & bit) != 0)
|
||||
{
|
||||
componentIDs[arrayIndex] = poolIndex;
|
||||
componentIDs[arrayIndex++] = poolIndex;
|
||||
|
||||
itemsCount--;
|
||||
if (itemsCount <= 0) { return itemsCount; }
|
||||
if (itemsCount <= 0) { return arrayIndex; }
|
||||
}
|
||||
poolIndex++;
|
||||
bit <<= 1;
|
||||
@ -1030,10 +1030,10 @@ namespace DCFApixels.DragonECS
|
||||
{
|
||||
if ((chunk & bit) != 0)
|
||||
{
|
||||
componentIDs[arrayIndex] = poolIndex;
|
||||
componentIDs[arrayIndex++] = poolIndex;
|
||||
|
||||
itemsCount--;
|
||||
if (itemsCount <= 0) { return itemsCount; }
|
||||
if (itemsCount <= 0) { return arrayIndex; }
|
||||
}
|
||||
poolIndex++;
|
||||
bit <<= 1;
|
||||
|
Loading…
Reference in New Issue
Block a user