diff --git a/changelog.txt b/changelog.txt index 5ebe877f2..68060da29 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- +== 08/20/2013 == +Uleat: Fix for bot pet spell buff corruption (existing db issues will correct themselves through pet death attrition) + == 07/18/2013 == KLS: Fix for crash in special_abilities code due to existing use of some dangerous code we didn't catch before. diff --git a/zone/bot.cpp b/zone/bot.cpp index 419cd6302..83ccc0979 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -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);