Skip to content

Commit

Permalink
reset ellipse on unit advancing
Browse files Browse the repository at this point in the history
same reason as for the overlays= change, in particular this fixes
remove_object of objects that set ellipses.
  • Loading branch information
gfgtdf committed Aug 24, 2019
1 parent ce5696f commit f4e7f41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/units/unit.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit f4e7f41

Please sign in to comment.