1
0
Fork 1
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:
Marc Zinnschlag 2012-12-08 13:37:43 +01:00
parent 11700237fc
commit a70a5282f4

View file

@ -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");
} }