From cb2df3028fa8998c9ef5bb4857cee12e03043782 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Wed, 10 Jun 2009 20:51:39 +0400 Subject: [PATCH] Fixed pet talent show after loading. --- src/game/Pet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index c2d0fc64c..012b1a7d8 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -308,6 +308,8 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool ((Player*)owner)->PetSpellInitialize(); if(((Player*)owner)->GetGroup()) ((Player*)owner)->SetGroupUpdateFlag(GROUP_UPDATE_PET); + + ((Player*)owner)->SendTalentsInfoData(true); } if (owner->GetTypeId() == TYPEID_PLAYER && getPetType() == HUNTER_PET) @@ -1646,7 +1648,8 @@ void Pet::InitTalentForLevel() if (!owner || owner->GetTypeId() != TYPEID_PLAYER) return; - ((Player*)owner)->SendTalentsInfoData(true); + if(!m_loading) + ((Player*)owner)->SendTalentsInfoData(true); } uint32 Pet::resetTalentsCost() const