summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-29 10:27:02 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-29 10:27:02 +0000
commit0a68e706bac90f56073f3ad2a30c4bada260225c (patch)
tree14b57c4b84570c5dac1962d1b75e6e2b44610ae9 /src/map/skill.c
parent98854fb7d9b029157c5fd02701763301923cfc61 (diff)
downloadhercules-0a68e706bac90f56073f3ad2a30c4bada260225c.tar.gz
hercules-0a68e706bac90f56073f3ad2a30c4bada260225c.tar.bz2
hercules-0a68e706bac90f56073f3ad2a30c4bada260225c.tar.xz
hercules-0a68e706bac90f56073f3ad2a30c4bada260225c.zip
* [Fixed]:
- status.c:920: warning: 'mbl' might be used uninitialized in this function - skill.c:6648: warning: 'matk_min' might be used uninitialized in this function - skill.c:6648: warning: 'matk_max' might be used uninitialized in this function - skill.c:2826: warning: 'sid' might be used uninitialized in this function git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6816 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index af0fef4b5..e9fd52854 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2823,7 +2823,7 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl,int s
case HVAN_CAPRICE: //[blackhole89]
{
int ran=rand()%4;
- int sid;
+ int sid = 0;
switch(ran)
{
case 0: sid=MG_COLDBOLT; break;
@@ -6645,7 +6645,7 @@ int skill_unit_onplace_timer(struct skill_unit *src,struct block_list *bl,unsign
struct status_data *tstatus, *sstatus;
struct status_change *tsc, *sc;
struct skill_unit_group_tickset *ts;
- int matk_min, matk_max; //For Magic power...
+ int matk_min = 0, matk_max = 0; //For Magic power...
int type, skillid;
int diff=0;