Misc: replace Unit::GetPlayer with ObjectAccessor::GetPlayer and some cosmetic changes

This commit is contained in:
joschiwald
2013-08-18 01:41:10 +02:00
parent c32dbd1432
commit 2b19ba1879
37 changed files with 263 additions and 300 deletions

View File

@@ -311,7 +311,7 @@ void FollowerAI::StartFollow(Player* player, uint32 factionForFollower, const Qu
Player* FollowerAI::GetLeaderForFollower()
{
if (Player* player = Unit::GetPlayer(*me, m_uiLeaderGUID))
if (Player* player = ObjectAccessor::GetPlayer(*me, m_uiLeaderGUID))
{
if (player->IsAlive())
return player;