mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 11:53:51 +00:00
fixed an overzealous skill gain error check
This commit is contained in:
parent
11700237fc
commit
a70a5282f4
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ float MWMechanics::NpcStats::getSkillGain (int skillIndex, const ESM::Class& cla
|
||||||
{
|
{
|
||||||
skillFactor = skill->mData.mUseValue[usageType];
|
skillFactor = skill->mData.mUseValue[usageType];
|
||||||
|
|
||||||
if (skillFactor<=0)
|
if (skillFactor<0)
|
||||||
throw std::runtime_error ("invalid skill gain factor");
|
throw std::runtime_error ("invalid skill gain factor");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue