mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 07:40:15 +00:00
Merge pull request #1514 from akortunov/ringfix
Do not replace an equpped ring of the same value
This commit is contained in:
commit
bb4ffb7743
1 changed files with 1 additions and 3 deletions
|
@ -330,12 +330,10 @@ void MWWorld::InventoryStore::autoEquip (const MWWorld::Ptr& actor)
|
|||
Ptr rightRing = *slots_.at(Slot_RightRing);
|
||||
|
||||
// we want to swap cheaper ring only if both are equipped
|
||||
if (rightRing.getClass().getValue(rightRing) < old.getClass().getValue(old))
|
||||
{
|
||||
if (old.getClass().getValue (old) >= rightRing.getClass().getValue (rightRing))
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (old.getTypeName() == typeid(ESM::Clothing).name())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue