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