*Thread safe player searcher in scripts.
--HG-- branch : trunk
This commit is contained in:
@@ -12851,9 +12851,9 @@ Unit* Unit::GetUnit(WorldObject& object, uint64 guid)
|
||||
return ObjectAccessor::GetUnit(object,guid);
|
||||
}
|
||||
|
||||
Player* Unit::GetPlayer(uint64 guid)
|
||||
Player* Unit::GetPlayer(WorldObject& object, uint64 guid)
|
||||
{
|
||||
return ObjectAccessor::FindPlayer(guid);
|
||||
return ObjectAccessor::GetPlayer(object,guid);
|
||||
}
|
||||
|
||||
Creature* Unit::GetCreature(WorldObject& object, uint64 guid)
|
||||
|
||||
@@ -1868,7 +1868,7 @@ class Unit : public WorldObject
|
||||
void addFollower(FollowerReference* pRef) { m_FollowingRefManager.insertFirst(pRef); }
|
||||
void removeFollower(FollowerReference* /*pRef*/) { /* nothing to do yet */ }
|
||||
static Unit* GetUnit(WorldObject& object, uint64 guid);
|
||||
static Player* GetPlayer(uint64 guid);
|
||||
static Player* GetPlayer(WorldObject& object, uint64 guid);
|
||||
static Creature* GetCreature(WorldObject& object, uint64 guid);
|
||||
|
||||
MotionMaster* GetMotionMaster(){ return &i_motionMaster; }
|
||||
|
||||
Reference in New Issue
Block a user