Fix #3065: unit halo remains after undoing a recall
This commit is contained in:
parent
fc002f49a9
commit
8fa3f6a6d4
1 changed files with 4 additions and 0 deletions
|
@ -19,10 +19,12 @@
|
|||
#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 "whiteboard/manager.hpp"
|
||||
|
||||
static lg::log_domain log_engine("engine");
|
||||
#define ERR_NG LOG_STREAM(err, log_engine)
|
||||
|
@ -92,6 +94,8 @@ bool recall_action::undo(int side)
|
|||
current_team.recall_list().add(un);
|
||||
|
||||
units.erase(recall_loc);
|
||||
resources::whiteboard->on_kill_unit();
|
||||
un->anim_comp().clear_haloes();
|
||||
this->return_village();
|
||||
execute_undo_umc_wml();
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue