*Thread safe player searcher in scripts.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2010-07-30 15:51:07 +02:00
1 parent 9bda35c7df
commit d666ba26c1
32 files changed
+69 -66

No files matched your search

@@ -309,7 +309,7 @@ void FollowerAI::StartFollow(Player* pLeader, uint32 uiFactionForFollower, const
Player* FollowerAI::GetLeaderForFollower()
{
if (Player* pLeader = Unit::GetPlayer(m_uiLeaderGUID))
if (Player* pLeader = Unit::GetPlayer(*me, m_uiLeaderGUID))
{
if (pLeader->isAlive())
return pLeader;