summaryrefslogtreecommitdiff
path: root/src/z-rand.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/z-rand.hpp')
-rw-r--r--src/z-rand.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/z-rand.hpp b/src/z-rand.hpp
index 235b9503..b04523c3 100644
--- a/src/z-rand.hpp
+++ b/src/z-rand.hpp
@@ -91,7 +91,7 @@ s32b rand_spread(s32b a, s32b d);
**/
template <class C> typename C::const_iterator uniform_element(C const &c)
{
- return c.begin() + rand_int(c.size());
+ return c.cbegin() + rand_int(c.size());
}
/**