master
Joscha 2018-07-13 18:32:51 +00:00
parent 63d0a3debd
commit 857838ed4d
1 changed files with 6 additions and 2 deletions

View File

@ -573,8 +573,12 @@ void SectorView::AddToRoute(const SystemPath &path)
}
bool SectorView::RemoveRouteItem(const std::vector<SystemPath>::size_type element) {
m_route.erase(m_route.begin() + element);
return true;
if (element >= 0 && element < m_route.size()) {
m_route.erase(m_route.begin() + element);
return true;
} else {
return false;
}
}
void SectorView::ClearRoute()