parent
5d4dd103a1
commit
22d3a6a47f
@ -110,7 +110,8 @@ eMonsterType cMobSpawner::ChooseMobType(EMCSBiome a_Biome)
|
||||
if (allowedMobsSize > 0)
|
||||
{
|
||||
std::set<eMonsterType>::iterator itr = allowedMobs.begin();
|
||||
int iRandom = m_Random.NextInt((int)allowedMobsSize, a_Biome);
|
||||
static int Counter = 0;
|
||||
int iRandom = m_Random.NextInt((int)allowedMobsSize, Counter++);
|
||||
|
||||
for (int i = 0; i < iRandom; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user