diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-06-29 02:12:26 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-06-29 02:12:26 +0000 |
commit | ceb020fa41935cb23838de77ec27aa5cc14e0428 (patch) | |
tree | 2bcc4ac4b9a692aed6ae2c847d56a081940270bf /src/map/script.c | |
parent | 8066ddee9b937a7f835f0af8a1fb393dfd0256b6 (diff) | |
download | hercules-ceb020fa41935cb23838de77ec27aa5cc14e0428.tar.gz hercules-ceb020fa41935cb23838de77ec27aa5cc14e0428.tar.bz2 hercules-ceb020fa41935cb23838de77ec27aa5cc14e0428.tar.xz hercules-ceb020fa41935cb23838de77ec27aa5cc14e0428.zip |
* Follow up to r14357. Moved where sd is checked for existance in specialeffect2.
* Fixed Bubble Gum again. (200 = +100%, 300 = +200%, etc.)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14358 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c index 3a08cfd90..3430db937 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11014,13 +11014,11 @@ BUILDIN_FUNC(specialeffect2) int type = script_getnum(st,2); enum send_target target = script_hasdata(st,3) ? (send_target)script_getnum(st,3) : AREA; - if(sd==NULL) - return 0; - if( script_hasdata(st,4) ) sd = map_nick2sd(script_getstr(st,4)); - clif_specialeffect(&sd->bl, type, target); + if (sd) + clif_specialeffect(&sd->bl, type, target); return 0; } |