summaryrefslogtreecommitdiff
path: root/src/emap/mob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/mob.c')
-rw-r--r--src/emap/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emap/mob.c b/src/emap/mob.c
index 11b7f9d..85cf3c6 100644
--- a/src/emap/mob.c
+++ b/src/emap/mob.c
@@ -348,7 +348,7 @@ int emob_dead_pre(struct mob_data **mdPtr,
// If Botter Syndrome is active, mob may randomly get NODROP
// Aka *typePtr |= 1
struct map_session_data *sd = BL_CAST(BL_PC, *srcPtr);
- if (sd->sc.data[SC_BOTTER_SYNDROME]) {
+ if (sd->sc.data && sd->sc.data[SC_BOTTER_SYNDROME]) {
if (rnd()%100 < sd->sc.data[SC_BOTTER_SYNDROME]->val1)
*typePtr = *typePtr | 1;
}