mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:53:50 +00:00
Cycle only through weapons which can be equipped by player (bug #4104)
This commit is contained in:
parent
f594eda574
commit
10a0136b4a
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue