From 40a4edc4f8fff75ba35b969882edabd17dd4c258 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Sat, 1 Dec 2018 11:19:08 +0100 Subject: [PATCH] Follow up to e02e85b Fixes #3721 Thanks to @teededung --- src/map/battle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/battle.cpp b/src/map/battle.cpp index 578264969a..8b5ed877ca 100644 --- a/src/map/battle.cpp +++ b/src/map/battle.cpp @@ -6847,7 +6847,7 @@ int64 battle_calc_return_damage(struct block_list* bl, struct block_list *src, i sc = status_get_sc(bl); ssc = status_get_sc(src); - if (sc->data[SC_WHITEIMPRISON]) + if (sc && sc->data[SC_WHITEIMPRISON]) return 0; // White Imprison does not reflect any damage if (flag & BF_SHORT) {//Bounces back part of the damage.