diff --git a/src/linkgraph/mcf.cpp b/src/linkgraph/mcf.cpp index c4ca33b6cb..b0d8b3b32f 100644 --- a/src/linkgraph/mcf.cpp +++ b/src/linkgraph/mcf.cpp @@ -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(anno)).first; + annos.insert(AnnoSetItem(anno)); anno->SetAnnosSetFlag(true); } paths[node] = anno;