wb: prevent unit id conflics
the wb recruit actions store temp units with fake ids and live longer
than a turn, so resetting the underlying id counter between turns might
result in dublicate id errors in wb recruit actions ( #1517 ), which
might lead to errors later.
With this it is of course possible to get erros when more than 2^31 (or
2^63 on a 64 bit wesnoth version.) fake units are generated during a
game, but that is less likely.
(cherry-picked from commit 775f3ec995
)
This commit is contained in:
parent
2b118b0455
commit
1d5a6bf533
1 changed files with 0 additions and 1 deletions
|
@ -553,7 +553,6 @@ void play_controller::finish_side_turn()
|
|||
}
|
||||
|
||||
mouse_handler_.deselect_hex();
|
||||
resources::gameboard->unit_id_manager().reset_fake();
|
||||
gamestate_->init_side_done() = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue