Codechange: Replaced SmallVector::Get(n) non-const with std::vector::data() + n

This commit is contained in:
Henry Wilson
2018-09-25 21:01:56 +01:00
committed by PeterN
parent bc7dcaffca
commit aa7ca7fe64
9 changed files with 10 additions and 23 deletions

View File

@@ -139,7 +139,7 @@ void LinkGraph::RemoveNode(NodeID id)
node_edges[id] = node_edges[last_node];
}
Station::Get(this->nodes[last_node].station)->goods[this->cargo].node = id;
this->nodes.Erase(this->nodes.Get(id));
this->nodes.erase(this->nodes.begin() + id);
this->edges.EraseColumn(id);
/* Not doing EraseRow here, as having the extra invalid row doesn't hurt
* and removing it would trigger a lot of memmove. The data has already