aboutsummaryrefslogtreecommitdiff
path: root/src/game/ScriptedEscortAI.h
diff options
context:
space:
mode:
authorRat <none@none>2010-04-14 23:07:41 +0200
committerRat <none@none>2010-04-14 23:07:41 +0200
commit6bcb297de4d5231373a3e2bf2b40e527b91cdf46 (patch)
treea5379b14ceb2ac9e7273143b334bfc693e2ef042 /src/game/ScriptedEscortAI.h
parentcc262e1cde544eb7cf643df79fa00c9f34af4785 (diff)
*code cleanup
*totally destroyed m_creature, use "me" for future coding --HG-- branch : trunk
Diffstat (limited to 'src/game/ScriptedEscortAI.h')
-rw-r--r--src/game/ScriptedEscortAI.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/ScriptedEscortAI.h b/src/game/ScriptedEscortAI.h
index 8901d4da40c..8b8064007d4 100644
--- a/src/game/ScriptedEscortAI.h
+++ b/src/game/ScriptedEscortAI.h
@@ -83,7 +83,7 @@ struct npc_escortAI : public ScriptedAI
uint64 GetEventStarterGUID() { return m_uiPlayerGUID; }
protected:
- Player* GetPlayerForEscort() { return (Player*)Unit::GetUnit(*m_creature, m_uiPlayerGUID); }
+ Player* GetPlayerForEscort() { return (Player*)Unit::GetUnit(*me, m_uiPlayerGUID); }
private:
bool AssistPlayerInCombat(Unit* pWho);