From 672266241cac3384f9666cda71c17b13c2703b64 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sat, 2 Jul 2011 08:34:02 +0000 Subject: [PATCH] Initialize some variables --- src/game/baseq2/g_combat.c | 2 +- src/game/ctf/g_combat.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/baseq2/g_combat.c b/src/game/baseq2/g_combat.c index 56b72cee..b7ec457d 100644 --- a/src/game/baseq2/g_combat.c +++ b/src/game/baseq2/g_combat.c @@ -174,7 +174,7 @@ static int CheckPowerArmor (edict_t *ent, vec3_t point, vec3_t normal, int damag int index; int damagePerCell; int pa_te_type; - int power; + int power = 0; int power_used; if (!damage) diff --git a/src/game/ctf/g_combat.c b/src/game/ctf/g_combat.c index 21f4da4b..1d33ca85 100644 --- a/src/game/ctf/g_combat.c +++ b/src/game/ctf/g_combat.c @@ -171,10 +171,10 @@ static int CheckPowerArmor (edict_t *ent, vec3_t point, vec3_t normal, int damag gclient_t *client; int save; int power_armor_type; - int index; + int index = 0; int damagePerCell; int pa_te_type; - int power; + int power = 0; int power_used; if (!damage)