aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts/base
diff options
context:
space:
mode:
authorAnubisss <none@none>2009-09-20 19:58:06 +0200
committerAnubisss <none@none>2009-09-20 19:58:06 +0200
commit43e61c2e2713f7589fba310689a985ea64ecf920 (patch)
tree838bb77b72e5da46a091f4e51e54476fd00fb682 /src/bindings/scripts/base
parent77328defeed9e258120cf534b77e6a106387314a (diff)
*Remove some not needed casts or used correct casts.
--HG-- branch : trunk
Diffstat (limited to 'src/bindings/scripts/base')
-rw-r--r--src/bindings/scripts/base/follower_ai.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindings/scripts/base/follower_ai.cpp b/src/bindings/scripts/base/follower_ai.cpp
index 9f362cc67af..5ac139015f2 100644
--- a/src/bindings/scripts/base/follower_ai.cpp
+++ b/src/bindings/scripts/base/follower_ai.cpp
@@ -289,7 +289,7 @@ void FollowerAI::StartFollow(Player* pLeader, uint32 uiFactionForFollower, const
Player* FollowerAI::GetLeaderForFollower()
{
- if (Player* pLeader = (Player*)Unit::GetUnit(*m_creature, m_uiLeaderGUID))
+ if (Player* pLeader = Unit::GetPlayer(m_uiLeaderGUID))
{
if (pLeader->isAlive())
return pLeader;