[7142] Fixed teleporting ghosts away from grave at lost control.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
balrok 2009-01-22 03:42:36 +03:00 committed by VladimirMangos
parent f26d6151c8
commit 6bdb95dfc3
2 changed files with 3 additions and 3 deletions

View file

@ -409,9 +409,9 @@ void BattleGroundAB::_NodeDeOccupied(uint8 node)
{ {
WorldSafeLocsEntry const *ClosestGrave = NULL; WorldSafeLocsEntry const *ClosestGrave = NULL;
Player *plr; Player *plr;
for (std::vector<uint64>::iterator itr = ghost_list.begin(); itr != ghost_list.end(); ++itr) for (std::vector<uint64>::const_iterator itr = ghost_list.begin(); itr != ghost_list.end(); ++itr)
{ {
plr = objmgr.GetPlayer(*ghost_list.begin()); plr = objmgr.GetPlayer(*itr);
if( !plr ) if( !plr )
continue; continue;
if( !ClosestGrave ) if( !ClosestGrave )

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7141" #define REVISION_NR "7142"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__