summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c6
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;
}