diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-11-16 17:47:21 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-11-16 17:47:21 -0500 |
| commit | a6ec20bced20c489dfcf3702dfd99310dfbed7df (patch) | |
| tree | b6db787b6f637cbcc24bdd09e2173debb2ec8db3 /src/dynamic-array.hpp | |
| parent | a01490e6faafdd2fcfc00720c08dc79e049b2c8c (diff) | |
dynArray - reserve should only change reservedCount
Diffstat (limited to 'src/dynamic-array.hpp')
| -rw-r--r-- | src/dynamic-array.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 <typename T> inline void DynArray<T>::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 <typename T> inline void DynArray<T>::Resize(int64_t count) { |
