*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
@@ -101,7 +101,7 @@ struct npc_sergeant_blyAI : public ScriptedAI
break;
case 3:
me->setFaction(FACTION_HOSTILE);
if (Player* pTarget = Player::GetPlayer(PlayerGUID))
if (Player* pTarget = Player::GetPlayer(*me, PlayerGUID))
AttackStart(pTarget);
if (pInstance)