diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2013-06-16 22:38:02 -0700 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2013-06-16 22:38:02 -0700 |
commit | f33c54e76be4f3fea6a21aab40fe13feb952239d (patch) | |
tree | 3bd5555b0cfe9779d5c6ae3c809ee667838478c3 /src/map | |
parent | 8568f179f5cefa638d564b75119235bac4b9a3b3 (diff) | |
download | hercules-f33c54e76be4f3fea6a21aab40fe13feb952239d.tar.gz hercules-f33c54e76be4f3fea6a21aab40fe13feb952239d.tar.bz2 hercules-f33c54e76be4f3fea6a21aab40fe13feb952239d.tar.xz hercules-f33c54e76be4f3fea6a21aab40fe13feb952239d.zip |
Fixed Bug#7382
-Map crash with AB_CLEARANCE
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 5a10038d8..664203f1a 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -7965,12 +7965,11 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui break; for(i = 0; i < SC_MAX; i++) { - if( SC_COMMON_MAX > i ){ - if ( !tsc->data[i] || !status_get_sc_type(i) ) - continue; + if ( !tsc->data[i] ) + continue; + if( SC_COMMON_MAX > i ) if ( status_get_sc_type(i)&SC_NO_CLEARANCE ) continue; - } switch (i) { case SC_ASSUMPTIO: if( bl->type == BL_MOB ) |