1
0

Remove sign conversion

This commit is contained in:
peterbell10
2017-06-14 16:35:34 +01:00
committed by Lukas Pioch
parent 885d80ccdb
commit f4de38af80
3 changed files with 8 additions and 7 deletions

View File

@@ -112,7 +112,8 @@ eMonsterType cMobSpawner::ChooseMobType(EMCSBiome a_Biome)
{
std::set<eMonsterType>::iterator itr = allowedMobs.begin();
std::advance(itr, GetRandomProvider().RandInt<size_t>(allowedMobsSize - 1));
using DiffType = decltype(itr)::difference_type;
std::advance(itr, GetRandomProvider().RandInt<DiffType>(allowedMobsSize - 1));
return *itr;
}