From a70a5282f4390cb23b1bd307648cadbdb7dc4510 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sat, 8 Dec 2012 13:37:43 +0100 Subject: [PATCH] fixed an overzealous skill gain error check --- apps/openmw/mwmechanics/npcstats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/npcstats.cpp b/apps/openmw/mwmechanics/npcstats.cpp index ca58f4825..facfa0eb0 100644 --- a/apps/openmw/mwmechanics/npcstats.cpp +++ b/apps/openmw/mwmechanics/npcstats.cpp @@ -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"); }