summaryrefslogtreecommitdiff
path: root/src/linkgraph
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-25 21:01:56 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commitaa7ca7fe64af51c2cd2400e3dec477dfbddadae3 (patch)
tree2b80f868a6e3e9df699f3b96bffb41b7b6f84125 /src/linkgraph
parentbc7dcaffca553b227fe895dc185e657d110c5ffe (diff)
downloadopenttd-aa7ca7fe64af51c2cd2400e3dec477dfbddadae3.tar.xz
Codechange: Replaced SmallVector::Get(n) non-const with std::vector::data() + n
Diffstat (limited to 'src/linkgraph')
-rw-r--r--src/linkgraph/linkgraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linkgraph/linkgraph.cpp b/src/linkgraph/linkgraph.cpp
index eee7ac61f..532792e7c 100644
--- a/src/linkgraph/linkgraph.cpp
+++ b/src/linkgraph/linkgraph.cpp
@@ -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