mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-16 16:20:53 +00:00
Merge pull request #1459 from akortunov/cyclingfix
Cycle only through weapons which player can equip
This commit is contained in:
commit
c39c29722b
@ -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…
x
Reference in New Issue
Block a user