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 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); }