aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorQAston <none@none>2010-07-30 15:51:07 +0200
committerQAston <none@none>2010-07-30 15:51:07 +0200
commitd666ba26c1a6d06c0697b0c48c0b04ebaa101781 (patch)
tree6e2027400fe4b609d54a2164d29b3e7de4049302 /src/server/scripts/World
parent9bda35c7dff12460cc9702212693911fdfb9d7ca (diff)
*Thread safe player searcher in scripts.
--HG-- branch : trunk
Diffstat (limited to 'src/server/scripts/World')
-rw-r--r--src/server/scripts/World/npcs_special.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp
index f6fa8f04258..11e25d0fd49 100644
--- a/src/server/scripts/World/npcs_special.cpp
+++ b/src/server/scripts/World/npcs_special.cpp
@@ -706,7 +706,7 @@ void npc_doctorAI::BeginEvent(Player* pPlayer)
void npc_doctorAI::PatientDied(Location* Point)
{
- Player* pPlayer = Unit::GetPlayer(PlayerGUID);
+ Player* pPlayer = Unit::GetPlayer(*me, PlayerGUID);
if (pPlayer && ((pPlayer->GetQuestStatus(6624) == QUEST_STATUS_INCOMPLETE) || (pPlayer->GetQuestStatus(6622) == QUEST_STATUS_INCOMPLETE)))
{
++PatientDiedCount;
@@ -1730,7 +1730,7 @@ struct mob_mojoAI : public ScriptedAI
me->MonsterWhisper(whisp.c_str(),pPlayer->GetGUID());
if (victimGUID)
{
- Player* victim = Unit::GetPlayer(victimGUID);
+ Player* victim = Unit::GetPlayer(*me, victimGUID);
if (victim)
victim->RemoveAura(43906);//remove polymorph frog thing
}