Fix #3065: unit halo remains after undoing a recall

(cherry-picked from commit 8fa3f6a6d4)
This commit is contained in:
Jyrki Vesterinen 2018-05-10 10:57:53 +03:00
parent a2bbed728d
commit 70fb145f4d

View file

@ -19,11 +19,13 @@
#include "resources.hpp"
#include "team.hpp"
#include "replay.hpp"
#include "units/animation_component.hpp"
#include "units/map.hpp"
#include "units/unit.hpp"
#include "statistics.hpp"
#include "log.hpp"
#include "game_display.hpp"
#include "whiteboard/manager.hpp"
static lg::log_domain log_engine("engine");
#define ERR_NG LOG_STREAM(err, log_engine)
@ -96,6 +98,8 @@ bool recall_action::undo(int side)
// to also do the overlapped hexes
gui.invalidate(recall_loc);
units.erase(recall_loc);
resources::whiteboard->on_kill_unit();
un->anim_comp().clear_haloes();
this->return_village();
execute_undo_umc_wml();
return true;