1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-22 21:40:42 +00:00

Merged pull request #1816

This commit is contained in:
Marc Zinnschlag 2018-07-27 12:09:10 +02:00
commit b7c159e5b6
2 changed files with 2 additions and 2 deletions

View File

@ -614,7 +614,7 @@ namespace MWClass
float Creature::getCapacity (const MWWorld::Ptr& ptr) const
{
const MWMechanics::CreatureStats& stats = getCreatureStats (ptr);
return static_cast<float>(stats.getAttribute(0).getModified() * 5);
return static_cast<float>(stats.getAttribute(ESM::Attribute::Strength).getModified() * 5);
}
int Creature::getServices(const MWWorld::ConstPtr &actor) const

View File

@ -1079,7 +1079,7 @@ namespace MWClass
{
const MWMechanics::CreatureStats& stats = getCreatureStats (ptr);
static const float fEncumbranceStrMult = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("fEncumbranceStrMult")->getFloat();
return stats.getAttribute(0).getModified()*fEncumbranceStrMult;
return stats.getAttribute(ESM::Attribute::Strength).getModified()*fEncumbranceStrMult;
}
float Npc::getEncumbrance (const MWWorld::Ptr& ptr) const