From 6192fcbd0c2e56fb347d3df98495d8eace6906f2 Mon Sep 17 00:00:00 2001 From: AlexDereka Date: Wed, 29 Apr 2009 15:27:50 +0400 Subject: [PATCH] [7733] Fixed compile error on VC2005ee. --- src/game/Transports.cpp | 4 ++-- src/game/Unit.cpp | 2 +- src/game/WorldSocketMgr.cpp | 2 +- src/shared/revision_nr.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/Transports.cpp b/src/game/Transports.cpp index 5c1cd3a1b..290a42b21 100644 --- a/src/game/Transports.cpp +++ b/src/game/Transports.cpp @@ -436,9 +436,9 @@ void Transport::TeleportTransport(uint32 newMapid, float x, float y, float z) SetMapId(newMapid); Relocate(x, y, z); - for(PlayerSet::const_iterator itr = m_passengers.begin(); itr != m_passengers.end();) + for(PlayerSet::iterator itr = m_passengers.begin(); itr != m_passengers.end();) { - PlayerSet::const_iterator it2 = itr; + PlayerSet::iterator it2 = itr; ++itr; Player *plr = *it2; diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 4ed56827c..a2928a43e 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7284,7 +7284,7 @@ void Unit::RemoveAllAttackers() { while (!m_attackers.empty()) { - AttackerSet::const_iterator iter = m_attackers.begin(); + AttackerSet::iterator iter = m_attackers.begin(); if(!(*iter)->AttackStop()) { sLog.outError("WORLD: Unit has an attacker that isn't attacking it!"); diff --git a/src/game/WorldSocketMgr.cpp b/src/game/WorldSocketMgr.cpp index 876862937..b7a476123 100644 --- a/src/game/WorldSocketMgr.cpp +++ b/src/game/WorldSocketMgr.cpp @@ -156,7 +156,7 @@ class ReactorRunnable : protected ACE_Task_Base ACE_ASSERT (m_Reactor); - SocketSet::const_iterator i, t; + SocketSet::iterator i, t; while (!m_Reactor->reactor_event_loop_done ()) { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index a3d72c6c2..77e54d89b 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 "7732" + #define REVISION_NR "7733" #endif // __REVISION_NR_H__