Author: anonymissimus
Date: Thu May 17 22:07:06 2012
New Revision: 54192
URL: http://svn.gna.org/viewcvs/wesnoth?rev=54192&view=rev
Log:
let play_controller::player_number_ have the last side's side_number
after the loop over the sides' turns. (fix for bug #19735)
Modified:
trunk/src/playsingle_controller.cpp
Modified: trunk/src/playsingle_controller.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/playsingle_controller.cpp?rev=54192&r1=54191&r2=54192&view=diff
==============================================================================
--- trunk/src/playsingle_controller.cpp (original)
+++ trunk/src/playsingle_controller.cpp Thu May 17 22:07:06 2012
@@ -602,6 +602,10 @@
//if loading a savegame, network turns might not have reset
this yet
loading_game_ = false;
}
+ //If the loop exits due to the last team having been processed,
+ //player_number_ will be 1 too high
+ if(player_number_ > static_cast<int>(teams_.size()))
+ player_number_ = teams_.size();
finish_turn();
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits