From 37f40ff5eaae41562629e4b7a429049d681fe2fa Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 6 Apr 2013 20:49:26 -0300 Subject: Fixed FrostNova Crash Special Thanks to Beret for pointing it out. Signed-off-by: shennetsind --- src/map/status.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index 8589a54e7..5d41acbe0 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1495,13 +1495,16 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, uin } if( skill_id ) { - int i; - for(i = 0; i < map[src->m].zone->disabled_skills_count; i++) { - if( skill_id == map[src->m].zone->disabled_skills[i]->nameid && (map[src->m].zone->disabled_skills[i]->type&src->type) ) { - if( src->type == BL_PC ) - clif->msg((TBL_PC*)src, SKILL_CANT_USE_AREA); // This skill cannot be used within this area - return 0; + if( src ) { + int i; + + for(i = 0; i < map[src->m].zone->disabled_skills_count; i++) { + if( skill_id == map[src->m].zone->disabled_skills[i]->nameid && (map[src->m].zone->disabled_skills[i]->type&src->type) ) { + if( src->type == BL_PC ) + clif->msg((TBL_PC*)src, SKILL_CANT_USE_AREA); // This skill cannot be used within this area + return 0; + } } } -- cgit v1.2.3-60-g2f50