Skip to content

Commit

Permalink
resolveHttT, Konrad's portrait is not used after he is lvl 2 (bug #4248)
Browse files Browse the repository at this point in the history
pr #4250

resolves #4248 which was broken before in  66a282a
  • Loading branch information
newfrenchy83 authored and gfgtdf committed Aug 18, 2019
1 parent 0120694 commit 95a941b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/units/unit.cpp
Expand Up @@ -1023,7 +1023,16 @@ void unit::advance_to(const unit_type& u_type, bool use_traits)
if(resources::game_events) {
resources::game_events->add_events(new_type.events(), new_type.id());
}
bool bool_small_profile = get_attr_changed(UA_SMALL_PROFILE);
bool bool_profile = get_attr_changed(UA_PROFILE);
clear_changed_attributes();
if(bool_small_profile && small_profile_ != new_type.small_profile()) {
set_attr_changed(UA_SMALL_PROFILE);
}

if(bool_profile && profile_ != new_type.big_profile()) {
set_attr_changed(UA_PROFILE);
}
}

std::string unit::big_profile() const
Expand Down

0 comments on commit 95a941b

Please sign in to comment.