summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-04 09:43:33 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-04 09:43:33 +0000
commit8130760840bd75943cd8ae95a0eb180edfade03d (patch)
tree3a0935d45e5381958d665afeecf0ea4326bd861b /src/map/battle.c
parentbe3eff36cf8a880ee334d979c51da7dd3601fc00 (diff)
downloadhercules-8130760840bd75943cd8ae95a0eb180edfade03d.tar.gz
hercules-8130760840bd75943cd8ae95a0eb180edfade03d.tar.bz2
hercules-8130760840bd75943cd8ae95a0eb180edfade03d.tar.xz
hercules-8130760840bd75943cd8ae95a0eb180edfade03d.zip
Fixed warning:'type' might be used uninitialized in this function
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8123 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index cbc017819..2bf410ca3 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -656,7 +656,7 @@ int battle_addmastery(struct map_session_data *sd,struct block_list *target,int
static int battle_calc_base_damage(struct status_data *status, struct weapon_atk *wa, struct status_change *sc, unsigned short t_size, struct map_session_data *sd, int flag)
{
unsigned short atkmin=0, atkmax=0;
- short type;
+ short type = 0;
int damage = 0;
if (!sd)