Browse Source

Revert "Same fix for removeInternal"

This reverts commit 25bfde3a16.
tags/v2.4.1
falkTX 3 years ago
parent
commit
e081724910
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      source/modules/water/containers/Array.h

+ 1
- 2
source/modules/water/containers/Array.h View File

@@ -1097,13 +1097,12 @@ private:
{
--numUsed;
ElementType* const e = data.elements + indexToRemove;
e->~ElementType();
const int numberToShift = numUsed - indexToRemove;
if (numberToShift > 0)
data.moveMemory (e, e + 1, static_cast<size_t>(numberToShift));
e[numUsed].~ElementType();
minimiseStorageAfterRemoval();
}


Loading…
Cancel
Save