mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
fixed an overzealous skill gain error check
This commit is contained in:
parent
11700237fc
commit
a70a5282f4
@ -121,7 +121,7 @@ float MWMechanics::NpcStats::getSkillGain (int skillIndex, const ESM::Class& cla
|
||||
{
|
||||
skillFactor = skill->mData.mUseValue[usageType];
|
||||
|
||||
if (skillFactor<=0)
|
||||
if (skillFactor<0)
|
||||
throw std::runtime_error ("invalid skill gain factor");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user