From b6bb5fff4429f8f7f318f34595920b58d8d42ea8 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 31 Oct 2012 02:06:50 +0000 Subject: 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 --- src/map/skill.c | 4 ++-- 1 file 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; } -- cgit v1.2.3-70-g09d2