last ...
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user