diff options
Diffstat (limited to 'game/objectives/goto.cpp')
-rw-r--r-- | game/objectives/goto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/objectives/goto.cpp b/game/objectives/goto.cpp index c089bc3..8581a2d 100644 --- a/game/objectives/goto.cpp +++ b/game/objectives/goto.cpp @@ -17,7 +17,7 @@ GoTo::GoTo(Orders * o, const Link::End & cp, float d, const NodePtr & dest) : ActivityPtr GoTo::createActivity() const { - return std::make_unique<Go>(std::accumulate(links.begin(), links.end(), 0, + return std::make_unique<Go>(std::accumulate(links.begin(), links.end(), 0.F, [](auto p, const auto & l) { return p += l.first.lock()->length; }) |