stats: fix bug in assert for 2d vector

This commit is contained in:
Ali Saidi 2012-05-10 18:04:28 -05:00
parent 1965a89873
commit ec50c78f83

View file

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