*Thread safe player searcher in scripts.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-30 15:51:07 +02:00
parent 9bda35c7df
commit d666ba26c1
32 changed files with 69 additions and 66 deletions
@@ -109,7 +109,7 @@ struct npc_calvin_montagueAI : public ScriptedAI
++m_uiPhase;
break;
case 2:
if (Player *pPlayer = Unit::GetPlayer(m_uiPlayerGUID))
if (Player *pPlayer = Unit::GetPlayer(*me, m_uiPlayerGUID))
pPlayer->AreaExploredOrEventHappens(QUEST_590);
DoCast(me, SPELL_DRINK, true);