From dbb1ef5e478f493c9d22ec3ebe5be38f6852316e Mon Sep 17 00:00:00 2001 From: balrok Date: Thu, 22 Jan 2009 03:42:36 +0300 Subject: [PATCH] [7142] Fixed teleporting ghosts away from grave at lost control. Signed-off-by: VladimirMangos --- src/game/BattleGroundAB.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/BattleGroundAB.cpp b/src/game/BattleGroundAB.cpp index 45421f908c2..0aea8b9b77e 100644 --- a/src/game/BattleGroundAB.cpp +++ b/src/game/BattleGroundAB.cpp @@ -409,9 +409,9 @@ void BattleGroundAB::_NodeDeOccupied(uint8 node) { WorldSafeLocsEntry const *ClosestGrave = NULL; Player *plr; - for (std::vector::iterator itr = ghost_list.begin(); itr != ghost_list.end(); ++itr) + for (std::vector::const_iterator itr = ghost_list.begin(); itr != ghost_list.end(); ++itr) { - plr = objmgr.GetPlayer(*ghost_list.begin()); + plr = objmgr.GetPlayer(*itr); if( !plr ) continue; if( !ClosestGrave ) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 4fe9f1a74f2..2714b05be5c 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7141" + #define REVISION_NR "7142" #endif // __REVISION_NR_H__