*Remove some not needed casts or used correct casts.

--HG--
branch : trunk
This commit is contained in:
Anubisss committed 2009-09-20 19:58:06 +02:00
1 parent 77328defee
commit 43e61c2e27
5 files changed
+26 -26

No files matched your search

+1 -1
View File
@@ -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;