summaryrefslogtreecommitdiff
path: root/src/account-server
diff options
context:
space:
mode:
authorjurkan <jurkan@gmx.de>2012-05-01 13:51:37 +0200
committerjurkan <jurkan@gmx.de>2012-05-01 14:22:34 +0200
commit05669aae551820f2183984d1c706d3a82eb37be6 (patch)
tree4f28b3b3a499c89579bec8dd0f680018619e2813 /src/account-server
parent67a608b1d13780d19271fedec004bf49b2b2b908 (diff)
downloadmanaserv-05669aae551820f2183984d1c706d3a82eb37be6.tar.gz
manaserv-05669aae551820f2183984d1c706d3a82eb37be6.tar.bz2
manaserv-05669aae551820f2183984d1c706d3a82eb37be6.tar.xz
manaserv-05669aae551820f2183984d1c706d3a82eb37be6.zip
Fix compiler error in g++ (GCC) 4.7.0
Compiler error was due to variable redeclaration (variable inside of for loop had the same name as the loop iterator variabele) - fixed through renaming of the inner variable. Reviewed-by: bjorn
Diffstat (limited to 'src/account-server')
-rw-r--r--src/account-server/serverhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/account-server/serverhandler.cpp b/src/account-server/serverhandler.cpp
index 1f55bc98..a7d87da9 100644
--- a/src/account-server/serverhandler.cpp
+++ b/src/account-server/serverhandler.cpp
@@ -131,8 +131,8 @@ static GameServer *getGameServerFromMap(int mapId)
i_end = serverHandler->clients.end(); i != i_end; ++i)
{
GameServer *server = static_cast< GameServer * >(*i);
- ServerStatistics::const_iterator i = server->maps.find(mapId);
- if (i == server->maps.end()) continue;
+ ServerStatistics::const_iterator it = server->maps.find(mapId);
+ if (it == server->maps.end()) continue;
return server;
}
return NULL;