Pre instead of post increment a variable.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2009-11-27 22:59:18 +00:00
parent e985421a02
commit ccaa074fae

View File

@ -325,7 +325,7 @@ void playmp_controller::linger(upload_log& log)
// stay stuck in linger state when the *next* scenario is over.
gamestate_.classification().completion = "running";
// End all unit moves
for (unit_map::iterator u = units_.begin(); u != units_.end(); u++) {
for (unit_map::iterator u = units_.begin(); u != units_.end(); ++u) {
u->second.set_user_end_turn(true);
}
//current_team().set_countdown_time(0);