Fix unit [resistance] and [jamming_costs] not being used in sync checks

The typo this commit fixes would direct the game to a non-existent (and
invalid) [jamming_costs resistance] tag instead.

Reported by reluctant_deity on Reddit.
This commit is contained in:
Ignacio R. Morelle 2015-08-19 01:40:13 -03:00
parent 44312adfcb
commit f572f2f49f
2 changed files with 3 additions and 1 deletions

View file

@ -59,6 +59,8 @@ Version 1.13.1+dev:
* Fixed SDL2 compilation issues.
* Fixed RECRUIT_UNIT_VARIATIONS core WML macro leaking an internal temporary
variable ($recruited_unit_random_variation).
* Fixed unit [resistance] and [jamming_costs] not being considered for sync
check.
Version 1.13.1:
* Security fixes:

View file

@ -2304,7 +2304,7 @@ std::string get_checksum(const unit& u) {
child.recursive_clear_value("name");
}
const std::string child_keys[] = {"advance_from", "defense", "movement_costs", "vision_costs", "jamming_costs" "resistance", ""};
const std::string child_keys[] = {"advance_from", "defense", "movement_costs", "vision_costs", "jamming_costs", "resistance", ""};
for (int i = 0; !child_keys[i].empty(); ++i)
{