Fix initself crash

This commit is contained in:
Yunfan Li
2024-09-05 15:57:32 +08:00
parent 369f3373ed
commit 73f699fe89
2 changed files with 7 additions and 5 deletions

View File

@@ -5257,6 +5257,7 @@ bool PlayerbotAI::EqualLowercaseName(std::string s1, std::string s2)
return true;
}
// A custom CanEquipItem (remove AutoUnequipOffhand in FindEquipSlot to prevent unequip on `item usage` calculation)
InventoryResult PlayerbotAI::CanEquipItem(uint8 slot, uint16& dest, Item* pItem, bool swap, bool not_loading) const
{
dest = 0;