Skip to content

Commit

Permalink
remove unneeded check
Browse files Browse the repository at this point in the history
comparing nsides_ here isn't needed becasue nsides_ cannot change inside
that loop.
  • Loading branch information
gfgtdf committed Nov 15, 2014
1 parent 113c8d8 commit 076c6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game.cpp
Expand Up @@ -1074,7 +1074,7 @@ bool game::end_turn() {
turn_ended = true;
}
// Skip over empty sides.
for (int i = 0; i < nsides_ && nsides_ <= gamemap::MAX_PLAYERS && side_controllers_[current_side()] == "null"; ++i) {
for (int i = 0; i < nsides_ && side_controllers_[current_side()] == "null"; ++i) {
++end_turn_;
if (current_side() == 0) {
turn_ended = true;
Expand Down

0 comments on commit 076c6ef

Please sign in to comment.