From cb59ba9653e985352bdf8559b4e504610f068816 Mon Sep 17 00:00:00 2001 From: e Date: Mon, 10 Sep 2012 04:10:35 -0400 Subject: Core/Player: Fix wrong check in 7a8652c06f71e430c3cff9667edcbb0335be7cc0 --- src/server/game/Entities/Player/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 3ad3eb0ddd6..bc29f6795c9 100755 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -11532,7 +11532,7 @@ InventoryResult Player::CanEquipItem(uint8 slot, uint16 &dest, Item* pItem, bool if (eslot == EQUIPMENT_SLOT_OFFHAND) { // Do not allow polearm to be equipped in the offhand (rare case for the only 1h polearm 41750) - if (pProto->SubClass == ITEM_SUBCLASS_WEAPON_POLEARM) + if (type == INVTYPE_WEAPON && pProto->SubClass == ITEM_SUBCLASS_WEAPON_POLEARM) return EQUIP_ERR_ITEM_DOESNT_GO_TO_SLOT; else if (type == INVTYPE_WEAPON || type == INVTYPE_WEAPONOFFHAND) -- cgit v1.2.3