Core/Player: Add missing return
This commit is contained in:
1 parent
be1ca945c7
commit
f29874d7ad
1 file changed
+1
@@ -11602,6 +11602,7 @@ InventoryResult Player::CanUseItem(ItemTemplate const* proto) const
|
||||
|
||||
if (((proto->Flags2 & ITEM_FLAG2_FACTION_HORDE) && GetTeam() != HORDE) ||
|
||||
(((proto->Flags2 & ITEM_FLAG2_FACTION_ALLIANCE) && GetTeam() != ALLIANCE)))
|
||||
return EQUIP_ERR_CANT_EQUIP_EVER;
|
||||
|
||||
if ((proto->AllowableClass & getClassMask()) == 0 || (proto->AllowableRace & getRaceMask()) == 0)
|
||||
return EQUIP_ERR_CANT_EQUIP_EVER;
|
||||
|
||||
Reference in new issue
Block a user