diff options
author | megamage <none@none> | 2009-08-06 17:45:37 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-06 17:45:37 -0500 |
commit | 7f8ce1d80950b2bd680d0f8cc8ad44e4835e0d1a (patch) | |
tree | c351b74f6b247e0edc25a4e566c011ac3717a1e7 /src/game/BattleGroundAB.cpp | |
parent | e8556b879d36ad8899d6eb40e98f6de6d420a275 (diff) |
[8315] Fixed memory leaks (mostly at server shutdown) and code cleanups. Author: VladimirMangos
* Fixed leak in BattleGround::m_PlayerScores at BattleGround::Reset,
add and use BattleGroundScoreMap typedef
* Delete AreaTeam objects stored in global map at shutdown
* Delete Corpse objects stored in global map at shutdown
* Store guild bank log entries as objectes instead pointers in log event lists
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGroundAB.cpp')
-rw-r--r-- | src/game/BattleGroundAB.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/BattleGroundAB.cpp b/src/game/BattleGroundAB.cpp index 0ed28112fe7..70709af42ad 100644 --- a/src/game/BattleGroundAB.cpp +++ b/src/game/BattleGroundAB.cpp @@ -674,8 +674,7 @@ WorldSafeLocsEntry const* BattleGroundAB::GetClosestGraveYard(Player* player) void BattleGroundAB::UpdatePlayerScore(Player *Source, uint32 type, uint32 value) { - std::map<uint64, BattleGroundScore*>::iterator itr = m_PlayerScores.find(Source->GetGUID()); - + BattleGroundScoreMap::iterator itr = m_PlayerScores.find(Source->GetGUID()); if( itr == m_PlayerScores.end() ) // player not found... return; |