forked from teamnwah/openmw-tes3coop
Enchanting: fix inverted self-enchant success chance (Fixes #1701)
This commit is contained in:
parent
b370c0f7b5
commit
09607f992e
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ namespace MWMechanics
|
|||
|
||||
if(mSelfEnchanting)
|
||||
{
|
||||
if(getEnchantChance()<std::rand()/static_cast<double> (RAND_MAX)*100)
|
||||
if(std::rand()/static_cast<double> (RAND_MAX)*100 < getEnchantChance())
|
||||
return false;
|
||||
|
||||
mEnchanter.getClass().skillUsageSucceeded (mEnchanter, ESM::Skill::Enchant, 2);
|
||||
|
|
Loading…
Reference in a new issue