From af26debad8ef2d756e027fa9920ef0f68522d9c9 Mon Sep 17 00:00:00 2001 From: malufett Date: Fri, 14 Jun 2013 00:12:56 -0700 Subject: Fixed Bug#7361 Crash in 'status_get_matk'. Thanks to Axiom --- src/map/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/status.c b/src/map/status.c index 096e673c2..8363b8021 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -10916,7 +10916,7 @@ int status_get_matk(struct block_list *bl, int flag){ } if ((bl->type&BL_HOM && battle_config.hom_setting&0x20) //Hom Min Matk is always the same as Max Matk - || sc->data[SC_RECOGNIZEDSPELL]) + || (sc && sc->data[SC_RECOGNIZEDSPELL])) status->matk_min = status->matk_max; #ifdef RENEWAL -- cgit v1.2.3-70-g09d2