summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-06-14 00:12:56 -0700
committerEuphy <euphy@rathena.org>2013-06-15 15:54:48 -0400
commite600fec6e33d1677c147fe933d7f58ea5fc80a7a (patch)
treec09c5cee97588915a67fbc16d66b06773501b167 /src/map/status.c
parent7cbd76aad6a556726eff25b2e3115203f4b28f98 (diff)
downloadhercules-e600fec6e33d1677c147fe933d7f58ea5fc80a7a.tar.gz
hercules-e600fec6e33d1677c147fe933d7f58ea5fc80a7a.tar.bz2
hercules-e600fec6e33d1677c147fe933d7f58ea5fc80a7a.tar.xz
hercules-e600fec6e33d1677c147fe933d7f58ea5fc80a7a.zip
Fixed Bug#7361
Crash in 'status_get_matk'. Thanks to Axiom
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
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