mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 21:09:45 +00:00
Merge pull request #1512 from Rhiyo/patch-1
fixed new clothing replacing old clothing of same value
This commit is contained in:
commit
9be27193a3
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ void MWWorld::InventoryStore::autoEquip (const MWWorld::Ptr& actor)
|
|||
if (old.getTypeName() == typeid(ESM::Clothing).name())
|
||||
{
|
||||
// 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
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue