diff options
| -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) { |
