Fix two more pesky off-by-one errors.
This commit is contained in:
parent
c37029ea36
commit
0ab1b60a6d
2 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ void playmp_controller::play_side(const unsigned int team_index, bool save){
|
|||
player_type_changed_ = false;
|
||||
end_turn_ = false;
|
||||
|
||||
statistics::reset_turn_stats(teams_[team_index].save_id());
|
||||
statistics::reset_turn_stats(teams_[team_index-1].save_id());
|
||||
|
||||
// we can't call playsingle_controller::play_side because
|
||||
// we need to catch exception here
|
||||
|
|
|
@ -332,7 +332,7 @@ void replay_controller::play_side(const unsigned int team_index, bool){
|
|||
// If a side is empty skip over it.
|
||||
if (current_team().is_empty()) return;
|
||||
|
||||
statistics::reset_turn_stats(teams_[team_index].save_id());
|
||||
statistics::reset_turn_stats(teams_[team_index-1].save_id());
|
||||
|
||||
try{
|
||||
play_controller::init_side(player_number_ - 1, true);
|
||||
|
|
Loading…
Add table
Reference in a new issue