CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <[EMAIL PROTECTED]> 05/07/23 17:57:57
Modified files:
src/server : game.cpp
Log message:
fixed bug where re-joining a game you've left as an observer with the
same name causes out of sync
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/server/game.cpp.diff?tr1=1.42&tr2=1.43&r1=text&r2=text
Patches:
Index: wesnoth/src/server/game.cpp
diff -u wesnoth/src/server/game.cpp:1.42 wesnoth/src/server/game.cpp:1.43
--- wesnoth/src/server/game.cpp:1.42 Sat Jul 23 17:18:35 2005
+++ wesnoth/src/server/game.cpp Sat Jul 23 17:57:56 2005
@@ -1,4 +1,4 @@
-/* $Id: game.cpp,v 1.42 2005/07/23 17:18:35 Sirp Exp $ */
+/* $Id: game.cpp,v 1.43 2005/07/23 17:57:56 Sirp Exp $ */
/*
Copyright (C) 2003-5 by David White <[EMAIL PROTECTED]>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -112,7 +112,7 @@
//set all side controllers to 'human' so that observers will understand
that they can't
//take control of any sides if they happen to have the same name as one
of the descriptions
- config::child_itors& sides = level_.child_range("side");
+ config::child_itors sides = level_.child_range("side");
for(; sides.first != sides.second; ++sides.first) {
(**sides.first)["controller"] = "human";
}