summaryrefslogtreecommitdiff
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
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
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/battle.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index bcc43d65e..8dae57d4d 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -2,6 +2,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2006/08/04
+ * Fixed warning:'type' might be used uninitialized in this function [Toms]
2006/08/03
* Added a check to skip the experience share of characters who are dead or
on another map. [Skotlex]
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)