clear movement cost cache when modifying costs
This commit is contained in:
parent
c5b7f82a86
commit
1773afcce5
1 changed files with 1 additions and 0 deletions
|
@ -2333,6 +2333,7 @@ void unit::add_modification(const std::string& type, const config& mod,
|
|||
if (ap) {
|
||||
mod_mdr_merge(*mv, *ap, !utils::string_bool(replace));
|
||||
}
|
||||
movement_costs_.clear();
|
||||
} else if (apply_to == "defense") {
|
||||
config *mv = cfg_.child("defense");
|
||||
config *ap = (**i.first).child("defense");
|
||||
|
|
Loading…
Add table
Reference in a new issue