summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index ac6bf6957..7620fe91b 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -9782,7 +9782,7 @@ struct skill_unit_group* skill_initunitgroup (struct block_list* src, int count,
struct skill_unit_group* group;
int i;
- if(skilllv <= 0) return 0;
+ if(skillid <= 0 || skilllv <= 0) return 0;
nullpo_retr(NULL, src);
nullpo_retr(NULL, ud);