From 33f4ef63b6b08aa3e88792e549414626b0691c0a Mon Sep 17 00:00:00 2001 From: Bobblybook Date: Thu, 7 Nov 2024 23:10:13 +1100 Subject: [PATCH] Update EquipAction.cpp --- src/strategy/actions/EquipAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/actions/EquipAction.cpp b/src/strategy/actions/EquipAction.cpp index b74e6c3c..f4437e2c 100644 --- a/src/strategy/actions/EquipAction.cpp +++ b/src/strategy/actions/EquipAction.cpp @@ -88,7 +88,7 @@ void EquipAction::EquipItem(Item* item) if (!equippedBag) { - uint8 dstSlot = botAI->FindEquipSlot(item->GetTemplate(), NULL_SLOT, true); + uint8 dstSlot = botAI->FindEquipSlot(itemProto, NULL_SLOT, true); if (dstSlot == EQUIPMENT_SLOT_FINGER1 || dstSlot == EQUIPMENT_SLOT_TRINKET1 || dstSlot == EQUIPMENT_SLOT_MAINHAND)