summaryrefslogtreecommitdiff
path: root/src/dynamic-array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynamic-array.hpp')
-rw-r--r--src/dynamic-array.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynamic-array.hpp b/src/dynamic-array.hpp
index e5567f4..1df9300 100644
--- a/src/dynamic-array.hpp
+++ b/src/dynamic-array.hpp
@@ -166,7 +166,7 @@ template <typename T> inline T DynArray<T>::Pop() {
}
template <typename T> inline void DynArray<T>::Remove(std::size_t index, int64_t count) {
- assert(index >= this->elementCount && "Invalid DynArray<T>::Remove() - Out of bounds");
+ assert(index <= this->elementCount && "Invalid DynArray<T>::Remove() - Out of bounds");
int64_t moveCount = (this->elementCount - index - count);
assert(moveCount >= 0 && "Invalid DynArray<T>::Remove() - Removing too many elements");
assert(moveCount <= this->elementCount - index && "Invalid DynArray<T>::Remove() - Removing too many elements");