mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 09:25:49 +00:00
reset ellipse on unit advancing
same reason as for the overlays= change, in particular this fixes remove_object of objects that set ellipses.
This commit is contained in:
parent
ce5696f334
commit
f4e7f417e4
@ -922,6 +922,7 @@ void unit::advance_to(const unit_type& u_type, bool use_traits)
|
||||
is_healthy_ = false;
|
||||
image_mods_.clear();
|
||||
overlays_.clear();
|
||||
ellipse_.reset();
|
||||
|
||||
// Clear modification-related caches
|
||||
modification_descriptions_.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user