From 55165ac0bfce710399ffea9b0c62aefc4904cd3c Mon Sep 17 00:00:00 2001 From: aleos89 Date: Thu, 5 May 2016 12:36:33 -0400 Subject: [PATCH] Fixed a map crash from the mob mode update (fixes #1235 and fixes #1238) * Follow up to 55e4df1. * Added an extra check to make sure block list is not null on skill use. Thanks to @Vomaito, @keitenai, @spinzaku, @Playtester, and @Tokeiburu! --- src/map/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/status.c b/src/map/status.c index 2e4f9d87c5..131208b930 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -2093,7 +2093,7 @@ bool status_check_skilluse(struct block_list *src, struct block_list *target, ui switch( target->type ) { case BL_PC: { struct map_session_data *tsd = (TBL_PC*)target; - bool is_boss = (status_get_class_(src) == CLASS_BOSS); + bool is_boss = (src && status_get_class_(src) == CLASS_BOSS); bool is_detect = status_has_mode(status,MD_DETECTOR); if (pc_isinvisible(tsd))