This commit is contained in:
2025-03-03 02:29:55 +03:30
parent c9861773ec
commit 6a3fb91e9c
10 changed files with 14692 additions and 4394 deletions
+34
View File
@@ -7757,6 +7757,40 @@ void CleanupArray(
);
}
template <typename T>
void CleanupArray(
int &removedIndexes[],
T &buffer[] // Buffer to Cleanup ...
)
{
//
bool isValid = HasChild(buffer) &&
HasChild(removedIndexes);
if (!isValid)
{
return;
}
//
for (int i = 0; i < ArraySize(removedIndexes); i++)
{
//
int idx = removedIndexes[i];
if (IsValidIndex(idx) && ArraySize(buffer) > idx)
{
//
ArrayRemove(
buffer,
idx,
1 //
);
}
}
//
Clean(removedIndexes);
}
//
// Search Array For Specific Item ...
template <typename T>