[11229] Avoid access to Pet in pre-Create relocation

This commit is contained in:
VladimirMangos 2011-03-07 15:26:43 +03:00
parent 777e4e0fb2
commit 69e01fc349
2 changed files with 2 additions and 2 deletions

View file

@ -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());

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11228"
#define REVISION_NR "11229"
#endif // __REVISION_NR_H__