diff options
author | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-04 09:43:33 +0000 |
---|---|---|
committer | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-04 09:43:33 +0000 |
commit | 8130760840bd75943cd8ae95a0eb180edfade03d (patch) | |
tree | 3a0935d45e5381958d665afeecf0ea4326bd861b /src/map/battle.c | |
parent | be3eff36cf8a880ee334d979c51da7dd3601fc00 (diff) | |
download | hercules-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.c | 2 |
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) |