mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 04:14:05 +00:00
Do not replace an equpped ring of the same value
This commit is contained in:
parent
9be27193a3
commit
e64f14b7ce
@ -330,10 +330,8 @@ 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user