summaryrefslogtreecommitdiff
path: root/game/objectives/goto.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-05-02 14:44:31 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-05-02 14:44:31 +0100
commitf2654cf7d46b0e55d288cc48bdd6af872fb021f4 (patch)
treeb3bc31345a2ea16fd6b76b0435247027fab48808 /game/objectives/goto.cpp
parentBump to release GCC version (diff)
downloadilt-f2654cf7d46b0e55d288cc48bdd6af872fb021f4.tar.bz2
ilt-f2654cf7d46b0e55d288cc48bdd6af872fb021f4.tar.xz
ilt-f2654cf7d46b0e55d288cc48bdd6af872fb021f4.zip
Fix warnings produced by new clang-tidy
Diffstat (limited to 'game/objectives/goto.cpp')
-rw-r--r--game/objectives/goto.cpp2
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;
})