From a6ec20bced20c489dfcf3702dfd99310dfbed7df Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 16 Nov 2023 17:47:21 -0500 Subject: dynArray - reserve should only change reservedCount --- src/dynamic-array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dynamic-array.hpp') diff --git a/src/dynamic-array.hpp b/src/dynamic-array.hpp index 1df9300..3b87cea 100644 --- a/src/dynamic-array.hpp +++ b/src/dynamic-array.hpp @@ -190,7 +190,7 @@ template inline void DynArray::Reserve(int64_t count) { if (count > 0) { return DynArrayReserve(this, count); } - this->elementCount = this->elementCount > count ? count : this->elementCount; + this->reservedCount = this->reservedCount > count ? reservedCount : count; } template inline void DynArray::Resize(int64_t count) { -- cgit v1.2.3