*Only set guardian's ownerguid in setpet.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-25 10:12:15 -06:00
parent d76578219f
commit d2e0ed5f57
5 changed files with 20 additions and 12 deletions
+2 -2
View File
@@ -179,7 +179,8 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
else
m_charmInfo->SetPetNumber(pet_number, false);
SetOwnerGUID(owner->GetGUID());
owner->SetPet(this, true);
SetDisplayId(fields[3].GetUInt32());
SetNativeDisplayId(fields[3].GetUInt32());
uint32 petlevel = fields[4].GetUInt32();
@@ -313,7 +314,6 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
_LoadSpells();
_LoadSpellCooldowns();
owner->SetPet(this, true); // in DB stored only full controlled creature
sLog.outDebug("New Pet has guid %u", GetGUIDLow());
if(owner->GetTypeId() == TYPEID_PLAYER)