Skip to content

Commit

Permalink
Fix #3065: unit halo remains after undoing a recall
Browse files Browse the repository at this point in the history
(cherry-picked from commit 8fa3f6a)
  • Loading branch information
jyrkive committed Oct 7, 2018
1 parent a2bbed7 commit 70fb145
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/actions/undo_recall_action.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 70fb145

Please sign in to comment.