From 69e01fc3498f3fec7f656141ba32e4aa53e18df5 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Mon, 7 Mar 2011 15:26:43 +0300 Subject: [PATCH] [11229] Avoid access to Pet in pre-Create relocation --- src/game/Pet.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 6bb4c5cee..d502ccb9f 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -152,7 +152,7 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool // FIXME: Setup near to finish point because GetObjectBoundingRadius set in Create but some Create calls can be dependent from proper position // if pet have creature_template_addon.auras with persistent point for example or script call float px, py, pz; - owner->GetClosePoint(px, py, pz, 0, PET_FOLLOW_DIST, PET_FOLLOW_ANGLE, this); + owner->GetClosePoint(px, py, pz, 0, PET_FOLLOW_DIST, PET_FOLLOW_ANGLE); Relocate(px, py, pz, owner->GetOrientation()); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 894cc26a7..a2845193e 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11228" + #define REVISION_NR "11229" #endif // __REVISION_NR_H__