fixed an overzealous skill gain error check

actorid
Marc Zinnschlag 12 years ago
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…
Cancel
Save