diff --git a/apps/openmw/mwclass/armor.cpp b/apps/openmw/mwclass/armor.cpp index 8570d5e21..567dd6ca0 100644 --- a/apps/openmw/mwclass/armor.cpp +++ b/apps/openmw/mwclass/armor.cpp @@ -149,11 +149,11 @@ namespace MWClass float iWeight = environment.mWorld->getStore().gameSettings.find (typeGmst)->f; - if (iWeight * environment.mWorld->getStore().gameSettings.find ("fLightMaxMod")->f<= + if (iWeight * environment.mWorld->getStore().gameSettings.find ("fLightMaxMod")->f>= ref->base->data.weight) return ESM::Skill::LightArmor; - if (iWeight * environment.mWorld->getStore().gameSettings.find ("fMedMaxMod")->f<= + if (iWeight * environment.mWorld->getStore().gameSettings.find ("fMedMaxMod")->f>= ref->base->data.weight) return ESM::Skill::MediumArmor;