Fix for bot pet spell buff corruption

This commit is contained in:
Uleat
2013-08-20 20:55:19 -04:00
parent 406e2f84eb
commit 590d8f4043
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -2620,6 +2620,7 @@ void Bot::LoadPet() {
if(GetPet() && GetPet()->IsNPC()) {
NPC *pet = GetPet()->CastToNPC();
SpellBuff_Struct petBuffs[BUFF_COUNT];
memset(petBuffs, 0, sizeof(petBuffs));
uint32 petItems[MAX_WORN_INVENTORY];
LoadPetBuffs(petBuffs, PetSaveId);