diff options
author | click <none@none> | 2010-10-10 04:23:08 +0200 |
---|---|---|
committer | click <none@none> | 2010-10-10 04:23:08 +0200 |
commit | 91b48b33dc4fda03b8b73094c6324806dbd32d4f (patch) | |
tree | 6fa4a7ff09d2f1a875b21d2042646aee1bbe3897 /src | |
parent | f358de5437ad9ab74bd70ddc8bd86fd78d19ec87 (diff) |
Core/Pets: Initialize petlevel before synchronizing with owner
--HG--
branch : trunk
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Pet/Pet.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Entities/Pet/Pet.cpp b/src/server/game/Entities/Pet/Pet.cpp index 5e1843404b9..9e127a157ca 100755 --- a/src/server/game/Entities/Pet/Pet.cpp +++ b/src/server/game/Entities/Pet/Pet.cpp @@ -229,11 +229,13 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petentry, uint32 petnumber, bool c SetUInt32Value(UNIT_FIELD_PET_NAME_TIMESTAMP, uint32(time(NULL))); // cast can't be helped here SetCreatorGUID(owner->GetGUID()); + + SetLevel(petlevel); SetUInt32Value(UNIT_FIELD_PETEXPERIENCE, fields[5].GetUInt32()); + SynchronizeLevelWithOwner(); SetReactState(ReactStates(fields[6].GetUInt8())); - SetCanModifyStats(true); if (getPetType() == SUMMON_PET && !current) //all (?) summon pets come with full health when called, but not when they are current |