Cycle only through weapons which can be equipped by player (bug #4104)

pull/292/head
Andrei Kortunov 7 years ago
parent f594eda574
commit 10a0136b4a

@ -717,7 +717,9 @@ namespace MWGui
lastId = item.getCellRef().getRefId();
if (item.getClass().getTypeName() == typeid(ESM::Weapon).name() && isRightHandWeapon(item))
if (item.getClass().getTypeName() == typeid(ESM::Weapon).name() &&
isRightHandWeapon(item) &&
item.getClass().canBeEquipped(item, player).first)
{
found = true;
break;

Loading…
Cancel
Save