mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 18:41:08 +00:00
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
@ -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…
x
Reference in New Issue
Block a user