Merge pull request #1459 from akortunov/cyclingfix

Cycle only through weapons which player can equip
This commit is contained in:
scrawl 2017-09-17 13:17:41 +00:00 committed by GitHub
commit c39c29722b

View file

@ -717,7 +717,9 @@ namespace MWGui
lastId = item.getCellRef().getRefId(); 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; found = true;
break; break;