summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 20:05:46 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 20:05:46 +0000
commitdeec94982ac8e4b38423b273a49e4a0138746b06 (patch)
tree76a8aa4e953c0f88be038fc38fee339620c337cd
parent945b24704d229b4211762f6504260f4e0980608e (diff)
downloadhercules-deec94982ac8e4b38423b273a49e4a0138746b06.tar.gz
hercules-deec94982ac8e4b38423b273a49e4a0138746b06.tar.bz2
hercules-deec94982ac8e4b38423b273a49e4a0138746b06.tar.xz
hercules-deec94982ac8e4b38423b273a49e4a0138746b06.zip
Follow up r15316, fixed a gcc warning (tsc was uninitialized)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15317 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/skill.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 73303b25c..869eb6599 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2877,7 +2877,7 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int
{
struct map_session_data *sd = NULL;
struct status_data *tstatus;
- struct status_change *sc, *tsc;
+ struct status_change *sc;
if (skillid > 0 && skilllv <= 0) return 0;
@@ -3526,10 +3526,13 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int
* Rune Knight
**/
case RK_DRAGONBREATH:
- if( tsc && (tsc->data[SC_HIDING] )) {
- clif_skill_nodamage(src,src,skillid,skilllv,1);
- } else
- skill_attack(BF_MISC,src,src,bl,skillid,skilllv,tick,flag);
+ {
+ struct status_change *tsc = NULL;
+ if( (tsc = status_get_sc(bl)) && (tsc->data[SC_HIDING] )) {
+ clif_skill_nodamage(src,src,skillid,skilllv,1);
+ } else
+ skill_attack(BF_MISC,src,src,bl,skillid,skilllv,tick,flag);
+ }
break;
case HVAN_EXPLOSION: