add the new type to the known ones when applying such a modification
(fix for bug #16165)
This commit is contained in:
parent
d8f8057477
commit
6e714791d2
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue