Author: alink
Date: Tue Jul 8 21:43:32 2008
New Revision: 27849
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27849&view=rev
Log:
oops fix an error in r27847, we want the first empty slot not the last one
Modified:
trunk/src/multiplayer_wait.cpp
Modified: trunk/src/multiplayer_wait.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/multiplayer_wait.cpp?rev=27849&r1=27848&r2=27849&view=diff
==============================================================================
--- trunk/src/multiplayer_wait.cpp (original)
+++ trunk/src/multiplayer_wait.cpp Tue Jul 8 21:43:32 2008
@@ -241,7 +241,8 @@
int side_choice = -1;
for(config::child_list::const_iterator s = sides_list.begin();
s != sides_list.end(); ++s) {
if((**s)["controller"] == "network" &&
(**s)["id"].empty()) {
- side_choice = s - sides_list.begin();
+ if (side_choice < 0) // found the first empty
side
+ side_choice = s - sides_list.begin();
if((**s)["save_id"] == preferences::login() ||
(**s)["current_player"] == preferences::login()) {
break; // found the prefered one
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits