mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Linkgraph: Fix unused expression result warning
This commit is contained in:
parent
9ca1c04330
commit
32dcc0d484
@ -288,7 +288,7 @@ void MultiCommodityFlow::Dijkstra(NodeID source_node, PathVector &paths)
|
||||
Tannotation *anno = new (this->job.path_allocator.Allocate()) Tannotation(node, node == source_node);
|
||||
anno->UpdateAnnotation();
|
||||
if (node == source_node) {
|
||||
annos.insert(AnnoSetItem<Tannotation>(anno)).first;
|
||||
annos.insert(AnnoSetItem<Tannotation>(anno));
|
||||
anno->SetAnnosSetFlag(true);
|
||||
}
|
||||
paths[node] = anno;
|
||||
|
Loading…
Reference in New Issue
Block a user