diff options
| author | megamage <none@none> | 2009-03-25 10:12:15 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-25 10:12:15 -0600 |
| commit | d2e0ed5f5701e40e46c3f3c269eb49c4d8dafb08 (patch) | |
| tree | 3faf0c80fc766f17546f5d0615c7a26494366daf /src/game/Pet.cpp | |
| parent | d76578219ff556c604ea20e7328d952e07a709af (diff) | |
*Only set guardian's ownerguid in setpet.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Pet.cpp')
| -rw-r--r-- | src/game/Pet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 3048d42d344..031f9d90f8e 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -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) |
