summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-30 13:31:05 +0200
committertycho <work.tycho@gmail.com>2015-05-30 13:31:05 +0200
commitbca13d918770d28dda143931bbac4d594a327fac (patch)
treee11147feda662fba50b90f58aafc701a12c7094f /src
parentMerge pull request #2171 from SafwatHalaby/fence (diff)
downloadcuberite-bca13d918770d28dda143931bbac4d594a327fac.tar
cuberite-bca13d918770d28dda143931bbac4d594a327fac.tar.gz
cuberite-bca13d918770d28dda143931bbac4d594a327fac.tar.bz2
cuberite-bca13d918770d28dda143931bbac4d594a327fac.tar.lz
cuberite-bca13d918770d28dda143931bbac4d594a327fac.tar.xz
cuberite-bca13d918770d28dda143931bbac4d594a327fac.tar.zst
cuberite-bca13d918770d28dda143931bbac4d594a327fac.zip
Diffstat (limited to 'src')
-rw-r--r--src/Generating/FinishGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp
index 656dc95db..59af0fd63 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -1379,7 +1379,7 @@ eMonsterType cFinishGenPassiveMobs::GetRandomMob(cChunkDesc & a_ChunkDesc)
using diff_type =
std::iterator_traits<decltype(MobIter)>::difference_type;
diff_type RandMob = static_cast<diff_type>
- ((unsigned long)(m_Noise.IntNoise2DInt(chunkX - chunkZ + 2, chunkX + 5) / 7)
+ (static_cast<size_t>(m_Noise.IntNoise2DInt(chunkX - chunkZ + 2, chunkX + 5) / 7)
% ListOfSpawnables.size());
std::advance(MobIter, RandMob);