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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 47203beb5..0de86906c 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -7110,8 +7110,7 @@ BUILDIN_FUNC(itemskill)
id=script_getnum(st,2);
lv=script_getnum(st,3);
- // 詠唱中にスキルアイテムは使用できない
- if(sd->ud.skilltimer != -1)
+ if(!sd || sd->ud.skilltimer != -1)
return 0;
sd->skillitem=id;