mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
More Enchanting crash fixes
This commit is contained in:
parent
6d56c5c5c3
commit
b3e3a13f56
@ -1181,6 +1181,7 @@ void PlayerbotFactory::InitEquipment(bool incremental)
|
|||||||
newItem->AddToWorld();
|
newItem->AddToWorld();
|
||||||
newItem->AddToUpdateQueueOf(bot);
|
newItem->AddToUpdateQueueOf(bot);
|
||||||
bot->AutoUnequipOffhandIfNeed();
|
bot->AutoUnequipOffhandIfNeed();
|
||||||
|
newItem->SetOwnerGUID(bot->GetGUID());
|
||||||
EnchantItem(newItem);
|
EnchantItem(newItem);
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
@ -1325,6 +1326,7 @@ void PlayerbotFactory::InitSecondEquipmentSet()
|
|||||||
|
|
||||||
if (Item* newItem = StoreNewItemInInventorySlot(bot, newItemId, 1))
|
if (Item* newItem = StoreNewItemInInventorySlot(bot, newItemId, 1))
|
||||||
{
|
{
|
||||||
|
newItem->SetOwnerGUID(bot->GetGUID());
|
||||||
EnchantItem(newItem);
|
EnchantItem(newItem);
|
||||||
newItem->AddToWorld();
|
newItem->AddToWorld();
|
||||||
newItem->AddToUpdateQueueOf(bot);
|
newItem->AddToUpdateQueueOf(bot);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user