diff options
author | akrus <akrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-04-21 08:32:05 +0000 |
---|---|---|
committer | akrus <akrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-04-21 08:32:05 +0000 |
commit | 785240ffcd857f93b652810280e9e560ec5cd1e4 (patch) | |
tree | 99aee0034b58c1ded4027e74d4b10ea3c27ac5b6 /src/map/skill.c | |
parent | fad3d92f5b8c45f6c3c4e3138802b5006fd23f3e (diff) | |
download | hercules-785240ffcd857f93b652810280e9e560ec5cd1e4.tar.gz hercules-785240ffcd857f93b652810280e9e560ec5cd1e4.tar.bz2 hercules-785240ffcd857f93b652810280e9e560ec5cd1e4.tar.xz hercules-785240ffcd857f93b652810280e9e560ec5cd1e4.zip |
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
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 2 |
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); |