stats: fix bug in assert for 2d vector
This commit is contained in:
parent
1965a89873
commit
ec50c78f83
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue