summaryrefslogtreecommitdiff
path: root/game/objectives/freeroam.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/freeroam.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/freeroam.cpp')
-rw-r--r--game/objectives/freeroam.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/objectives/freeroam.cpp b/game/objectives/freeroam.cpp
index 0721ef2..b569d36 100644
--- a/game/objectives/freeroam.cpp
+++ b/game/objectives/freeroam.cpp
@@ -17,6 +17,6 @@ Link::Next
FreeRoam::navigate(Link::Nexts::const_iterator begin, Link::Nexts::const_iterator end) const
{
static std::mt19937 gen(std::random_device {}());
- auto off = std::uniform_int_distribution<>(0, std::distance(begin, end) - 1)(gen);
+ auto off = std::uniform_int_distribution<long>(0, std::distance(begin, end) - 1)(gen);
return begin[off];
}