fix warning left by esr

This commit is contained in:
Nils Kneuper 2008-10-23 20:26:16 +00:00
parent 287d5c9d27
commit c9318bd11a

View file

@ -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;