forked from github/server
uninitialized variables
This commit is contained in:
parent
e4d264681d
commit
d026b324fd
1 changed files with 2 additions and 2 deletions
|
@ -923,7 +923,7 @@ terminate(troop dt, troop at, int type, const char *damage, boolean missile)
|
||||||
side *ds = df->side;
|
side *ds = df->side;
|
||||||
int hp;
|
int hp;
|
||||||
|
|
||||||
int ar, an, am;
|
int ar = 0, an, am;
|
||||||
const armor_type * armor = select_armor(dt, true);
|
const armor_type * armor = select_armor(dt, true);
|
||||||
const armor_type * shield = select_armor(dt, false);
|
const armor_type * shield = select_armor(dt, false);
|
||||||
|
|
||||||
|
@ -965,7 +965,7 @@ terminate(troop dt, troop at, int type, const char *damage, boolean missile)
|
||||||
sd = weapon_effskill(dt, at, weapon, false, false);
|
sd = weapon_effskill(dt, at, weapon, false, false);
|
||||||
if (weapon!=NULL) dwtype=weapon->type;
|
if (weapon!=NULL) dwtype=weapon->type;
|
||||||
|
|
||||||
if (armor) ar = armor->prot;
|
if (armor) ar += armor->prot;
|
||||||
if (shield) ar += shield->prot;
|
if (shield) ar += shield->prot;
|
||||||
|
|
||||||
/* natürliche Rüstung */
|
/* natürliche Rüstung */
|
||||||
|
|
Loading…
Reference in a new issue