bug fix, last point are was not reachable
This commit is contained in:
@@ -110,8 +110,10 @@ Point Route::getNextPoint() {
|
|||||||
this->it++;
|
this->it++;
|
||||||
this->currentPoint++;
|
this->currentPoint++;
|
||||||
return *this->it;
|
return *this->it;
|
||||||
}
|
} else if (this->it == this->points.end() && this->currentPoint != this->points.size()) {
|
||||||
else
|
this->currentPoint++;
|
||||||
|
return *this->it;
|
||||||
|
} else
|
||||||
return Point(0, 0);
|
return Point(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user