From 785240ffcd857f93b652810280e9e560ec5cd1e4 Mon Sep 17 00:00:00 2001 From: akrus Date: Tue, 21 Apr 2009 08:32:05 +0000 Subject: Crashfix for negative skill id values (bugreport:2984) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13684 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2