Fixed minor cast warning
This commit is contained in:
parent
97ee861c20
commit
bca13d9187
@ -1379,7 +1379,7 @@ eMonsterType cFinishGenPassiveMobs::GetRandomMob(cChunkDesc & a_ChunkDesc)
|
|||||||
using diff_type =
|
using diff_type =
|
||||||
std::iterator_traits<decltype(MobIter)>::difference_type;
|
std::iterator_traits<decltype(MobIter)>::difference_type;
|
||||||
diff_type RandMob = static_cast<diff_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());
|
% ListOfSpawnables.size());
|
||||||
std::advance(MobIter, RandMob);
|
std::advance(MobIter, RandMob);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user