Update advancement.cpp

(cherry-picked from commit 5386841088)
This commit is contained in:
newfrenchy83 2018-05-24 15:30:25 +02:00 committed by Jyrki Vesterinen
parent fda634af12
commit b3e63cb173

View file

@ -351,6 +351,7 @@ void advance_unit(map_location loc, const advancement_option &advance_to, bool f
preferences::encountered_units().insert(new_unit->type_id());
LOG_CF << "Added '" << new_unit->type_id() << "' to the encountered units.\n";
}
u->anim_comp().clear_haloes();
resources::gameboard->units().erase(loc);
resources::whiteboard->on_kill_unit();
u = resources::gameboard->units().insert(new_unit).first;