add the new type to the known ones when applying such a modification

(fix for bug #16165)
This commit is contained in:
Anonymissimus 2011-08-12 00:06:29 +00:00
parent d8f8057477
commit 6e714791d2

View file

@ -2602,6 +2602,7 @@ void unit::add_modification(const std::string& type, const config& mod, bool no_
int experience = experience_;
int movement = movement_;
advance_to(this->type());
preferences::encountered_units().insert(type);
hit_points_ = hit_points;
experience_ = experience;
movement_ = movement;