Fixes bug #5439.
Unstored units are now added to the encountered list. (In case the unit type is changed to something new.)
This commit is contained in:
parent
add209188c
commit
37f2247fcb
1 changed files with 1 additions and 0 deletions
|
@ -1581,6 +1581,7 @@ bool event_handler::handle_event_command(const queued_event& event_info,
|
|||
wassert(game_map != NULL);
|
||||
wassert(status_ptr != NULL);
|
||||
const unit u(game_data_ptr,units,game_map,status_ptr,teams,var);
|
||||
preferences::encountered_units().insert(u.id());
|
||||
gamemap::location loc(var);
|
||||
if(loc.valid()) {
|
||||
if(utils::string_bool(cfg["find_vacant"])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue