From e081724910356d5bbb6fb5cc3b6dadc3d4503028 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 13 Oct 2021 10:45:22 +0100 Subject: [PATCH] Revert "Same fix for removeInternal" This reverts commit 25bfde3a169546c70c43c163a12b5df6b0531a4c. --- source/modules/water/containers/Array.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/modules/water/containers/Array.h b/source/modules/water/containers/Array.h index a11c44356..a03857e55 100644 --- a/source/modules/water/containers/Array.h +++ b/source/modules/water/containers/Array.h @@ -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(numberToShift)); - e[numUsed].~ElementType(); - minimiseStorageAfterRemoval(); }