summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-06-14 00:12:56 -0700
committermalufett <malufett.eat.my.binaries@gmail.com>2013-06-14 00:12:56 -0700
commitaf26debad8ef2d756e027fa9920ef0f68522d9c9 (patch)
tree0aa26fde6a610d911963cb0216b85a39c9851040
parent94bd7167765a0e66b74ab0484d4b202d22578438 (diff)
downloadhercules-af26debad8ef2d756e027fa9920ef0f68522d9c9.tar.gz
hercules-af26debad8ef2d756e027fa9920ef0f68522d9c9.tar.bz2
hercules-af26debad8ef2d756e027fa9920ef0f68522d9c9.tar.xz
hercules-af26debad8ef2d756e027fa9920ef0f68522d9c9.zip
Fixed Bug#7361
Crash in 'status_get_matk'. Thanks to Axiom
-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