remove check which was alywas true
This commit is contained in:
parent
16e66e59a5
commit
cfc41d01e7
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,8 @@ void Grid<V, G, T>::get(const Box<T>& box, std::set<V>* s) const {
|
|||
size_t neX = getCellXFromX(box.getUpperRight().getX());
|
||||
size_t neY = getCellYFromY(box.getUpperRight().getY());
|
||||
|
||||
for (size_t x = swX; x <= neX && x >= 0 && x < _xWidth; x++)
|
||||
for (size_t y = swY; y <= neY && y >= 0 && y < _yHeight; y++) get(x, y, s);
|
||||
for (size_t x = swX; x <= neX && x < _xWidth; x++)
|
||||
for (size_t y = swY; y <= neY && y < _yHeight; y++) get(x, y, s);
|
||||
}
|
||||
|
||||
// _____________________________________________________________________________
|
||||
|
|
Loading…
Reference in a new issue