mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fixed #680
This commit is contained in:
parent
69364b5b60
commit
8ac7edb04b
@ -1071,8 +1071,7 @@ int CCreatureHandler::pickRandomMonster(const boost::function<int()> &randGen, i
|
||||
{
|
||||
do
|
||||
{
|
||||
pickRandomElementOf(creatures, randGen);
|
||||
//r = retreiveRandNum(randGen) % CREATURES_COUNT;
|
||||
r = pickRandomElementOf(creatures, randGen)->idNumber;
|
||||
} while (vstd::contains(VLC->creh->notUsedMonsters,r));
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user