diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-10-31 02:06:50 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-10-31 02:06:50 +0000 |
commit | b6bb5fff4429f8f7f318f34595920b58d8d42ea8 (patch) | |
tree | c8059e240299e50b3c27208e213a168515a8aa40 | |
parent | 0fe3daa79298bec69f8a85c210a2fc1d7a437851 (diff) | |
download | hercules-b6bb5fff4429f8f7f318f34595920b58d8d42ea8.tar.gz hercules-b6bb5fff4429f8f7f318f34595920b58d8d42ea8.tar.bz2 hercules-b6bb5fff4429f8f7f318f34595920b58d8d42ea8.tar.xz hercules-b6bb5fff4429f8f7f318f34595920b58d8d42ea8.zip |
Fixed bugreport:6830 Fixed potential crash on Shadow Chaser's Auto Spell. Special Thanks to ultramage's hawk eyes.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16848 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/skill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index bb0f5fb0f..df3d30765 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -16340,8 +16340,8 @@ int skill_select_menu(struct map_session_data *sd,int flag,int skill_id) { status_change_end(&sd->bl,SC_STOP,INVALID_TIMER); } - if( (id = sd->status.skill[skill_id].id) == 0 || sd->status.skill[skill_id].flag != SKILL_FLAG_PLAGIARIZED || - skill_id >= GS_GLITTERING || skill_get_type(skill_id) != BF_MAGIC ) { + if( skill_id >= GS_GLITTERING || skill_get_type(skill_id) != BF_MAGIC || + (id = sd->status.skill[skill_id].id) == 0 || sd->status.skill[skill_id].flag != SKILL_FLAG_PLAGIARIZED ) { clif_skill_fail(sd,SC_AUTOSHADOWSPELL,0,0); return 0; } |