1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-07-07 02:51:34 +00:00

Merge pull request #1512 from Rhiyo/patch-1

fixed new clothing replacing old clothing of same value
This commit is contained in:
scrawl 2017-10-19 14:54:27 +00:00 committed by GitHub
commit 9be27193a3

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;
} }