fix warning left by esr
This commit is contained in:
parent
287d5c9d27
commit
c9318bd11a
1 changed files with 3 additions and 2 deletions
|
@ -185,8 +185,9 @@ void ai::do_attack_analysis(
|
|||
unit_ability_list abil = unit_itor->second.get_abilities("leadership",tiles[j]);
|
||||
int best_leadership_bonus = abil.highest("value").first;
|
||||
double leadership_bonus = static_cast<double>(best_leadership_bonus+100)/100.0;
|
||||
if (leadership_bonus > 1.1)
|
||||
ERR_AI << unit_itor->second.name() << " is getting leadership " << leadership_bonus << "\n";
|
||||
if (leadership_bonus > 1.1) {
|
||||
ERR_AI << unit_itor->second.name() << " is getting leadership " << leadership_bonus << "\n"
|
||||
}
|
||||
|
||||
// Check to see whether this move would be a backstab.
|
||||
int backstab_bonus = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue