Use World prng for selection of random creature spawning

openmw-fix_osx_build_maybe
ζeh Matt 3 years ago
parent 12a8a6b876
commit cb99e8643a
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0

@ -3697,7 +3697,7 @@ namespace MWWorld
const ESM::CreatureLevList* list = mStore.get<ESM::CreatureLevList>().find(creatureList);
static int iNumberCreatures = mStore.get<ESM::GameSetting>().find("iNumberCreatures")->mValue.getInteger();
int numCreatures = 1 + Misc::Rng::rollDice(iNumberCreatures); // [1, iNumberCreatures]
int numCreatures = 1 + Misc::Rng::rollDice(iNumberCreatures, mPrng); // [1, iNumberCreatures]
for (int i=0; i<numCreatures; ++i)
{

Loading…
Cancel
Save