Merge pull request #1514 from akortunov/ringfix

Do not replace an equpped ring of the same value
pull/319/head
scrawl 7 years ago committed by GitHub
commit bb4ffb7743

@ -330,10 +330,8 @@ void MWWorld::InventoryStore::autoEquip (const MWWorld::Ptr& actor)
Ptr rightRing = *slots_.at(Slot_RightRing); Ptr rightRing = *slots_.at(Slot_RightRing);
// we want to swap cheaper ring only if both are equipped // 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; continue;
}
} }
} }

Loading…
Cancel
Save