1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-05 15:40:10 +00:00

Merge branch 'master' into osgshadow-test-vdsm

This commit is contained in:
AnyOldName3 2017-10-20 18:18:38 +01:00
commit e24b76fb5e

View File

@ -340,7 +340,7 @@ void MWWorld::InventoryStore::autoEquip (const MWWorld::Ptr& actor)
if (old.getTypeName() == typeid(ESM::Clothing).name()) if (old.getTypeName() == typeid(ESM::Clothing).name())
{ {
// check value // check value
if (old.getClass().getValue (old) > test.getClass().getValue (test)) if (old.getClass().getValue (old) >= test.getClass().getValue (test))
// old clothing was more valuable // old clothing was more valuable
continue; continue;
} }