diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/base/statistics.hh | 2 |
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); } |