diff --git a/src/common/kernel/battle.c b/src/common/kernel/battle.c index 438ee8d74..b9959a3fa 100644 --- a/src/common/kernel/battle.c +++ b/src/common/kernel/battle.c @@ -762,7 +762,8 @@ weapon_effskill(troop t, troop enemy, const weapon * w, boolean attacking, boole static const armor_type * select_armor(troop t, boolean shield) { - unsigned int type = shield?ATF_SHIELD:0; unit * u = t.fighter->unit; + unsigned int type = shield?ATF_SHIELD:0; + unit * u = t.fighter->unit; const armor * a = t.fighter->armors; int geschuetzt = 0; @@ -776,7 +777,8 @@ select_armor(troop t, boolean shield) } for (;a;a=a->next) { - if ((a->atype->flags & ATF_SHIELD)==type) { geschuetzt += a->count; + if ((a->atype->flags & ATF_SHIELD)==type) { + geschuetzt += a->count; if (geschuetzt > t.index) { /* unser Kandidat wird geschuetzt */ return a->atype;