mail[Wesnoth-commits] r28879 - /trunk/src/playsingle_controller.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by loonycyborg on August 23, 2008 - 16:32:
Author: loonycyborg
Date: Sat Aug 23 16:32:25 2008
New Revision: 28879

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28879&view=rev
Log:
Fixed off-by-one error.

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=28879&r1=28878&r2=28879&view=diff
==============================================================================
--- trunk/src/playsingle_controller.cpp (original)
+++ trunk/src/playsingle_controller.cpp Sat Aug 23 16:32:25 2008
@@ -573,7 +573,7 @@
                end_turn_ = false;
 
 
-               statistics::reset_turn_stats(teams_[team_index].save_id());
+               statistics::reset_turn_stats(teams_[team_index - 
1].save_id());
 
                if(current_team().is_human() || temporary_human) {
                        LOG_NG << "is human...\n";




Related Messages


Powered by MHonArc, Updated Sat Aug 23 17:21:23 2008