second try at haloes and leveling, once again,

AI0867, could you please test ? thx
This commit is contained in:
Jérémy Rosen 2008-09-03 19:10:02 +00:00
parent 96e1b8f3e2
commit e608a34d4c

View file

@ -728,6 +728,8 @@ void unit::advance_to(const unit_type* t, bool use_traits, game_state* state)
}
}
// we don't want to inherit our previous type's halo
cfg_["halo"] = "";
cfg_.merge_with(t->cfg_);
if (!specific_profile.empty()) {
cfg_["profile"] = specific_profile;