mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 11:21:39 +00:00
Pre instead of post increment a variable.
Issue found by cppcheck.
This commit is contained in:
parent
e985421a02
commit
ccaa074fae
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user