summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base/statistics.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh
index cb63af708..67c09bb6a 100644
--- a/src/base/statistics.hh
+++ b/src/base/statistics.hh
@@ -1231,7 +1231,7 @@ class Vector2dBase : public DataWrapVec2d<Derived, Vector2dInfoProxy>
operator[](off_type index)
{
off_type offset = index * y;
- assert (index >= 0 && offset + index < size());
+ assert (index >= 0 && offset + y <= size());
return Proxy(this->self(), offset, y);
}