Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons)

This commit is contained in:
Spp-
2011-07-27 12:14:27 +02:00
parent fa50c0a464
commit b2a84d9f1e
47 changed files with 166 additions and 168 deletions
@@ -153,7 +153,7 @@ void ArenaTeamMgr::DistributeArenaPoints()
CharacterDatabase.PExecute("UPDATE characters SET arenaPoints = arenaPoints + '%u' WHERE guid = '%u'", playerItr->second, playerItr->first);
// Add points to player if online
Player* pl = sObjectMgr->GetPlayer(playerItr->first);
Player* pl = ObjectAccessor::FindPlayer(playerItr->first);
if (pl)
pl->ModifyArenaPoints(playerItr->second);
}