it kinda work

This commit is contained in:
Milxnor
2023-04-05 07:55:28 -04:00
parent bd4a8da94f
commit 0aa6c49580
25 changed files with 1247 additions and 219 deletions

View File

@@ -166,12 +166,12 @@ public:
int32 PreviousFreeIndex = -1;
int32 NextFreeIndex = -1;
if (NumFreeIndices == 0)
/* if (NumFreeIndices == 0)
{
FirstFreeIndex = IndexToRemove;
Data.at(IndexToRemove) = { -1, -1 };
}
else
else */
{
for (auto It = AllocationFlags.begin(); It != AllocationFlags.end(); ++It)
{
@@ -189,6 +189,7 @@ public:
}
}
}
AllocationFlags.Set(IndexToRemove, false);
NumFreeIndices++;