*Typofix - forgotten assigment in 00dc724412 - fixes weapon usage.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-26 19:54:32 +02:00
parent fc4087cd98
commit 31820f0340
+4 -4
View File
@@ -9543,9 +9543,9 @@ Item* Player::GetWeaponForAttack(WeaponAttackType attackType, bool useable /*= f
Item* item = NULL; Item* item = NULL;
if (useable) if (useable)
GetUseableItemByPos(INVENTORY_SLOT_BAG_0, slot); item = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, slot);
else else
GetItemByPos(INVENTORY_SLOT_BAG_0, slot); item = GetItemByPos(INVENTORY_SLOT_BAG_0, slot);
if (!item || item->GetProto()->Class != ITEM_CLASS_WEAPON) if (!item || item->GetProto()->Class != ITEM_CLASS_WEAPON)
return NULL; return NULL;
@@ -9562,9 +9562,9 @@ Item* Player::GetShield(bool useable) const
{ {
Item* item = NULL; Item* item = NULL;
if (useable) if (useable)
GetUseableItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_OFFHAND); item = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_OFFHAND);
else else
GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_OFFHAND); item = GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_OFFHAND);
if (!item || item->GetProto()->Class != ITEM_CLASS_ARMOR) if (!item || item->GetProto()->Class != ITEM_CLASS_ARMOR)
return NULL; return NULL;