From 2129555fa2752cfa0b9e73151fad2897d426fe63 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Mon, 22 Jun 2020 04:56:46 +0200 Subject: Remove pet if intimacy drops to 0 --- src/map/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index c1261c839..ca8e35073 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -8153,7 +8153,7 @@ static int pc_dead(struct map_session_data *sd, struct block_list *src) clif->send_petdata(sd, sd->pd, 1, pd->pet.intimate); } - if (sd->pd->target_id != 0) // Unlock all targets. + if (sd->pd != NULL && sd->pd->target_id != 0) // Unlock all targets. pet->unlocktarget(sd->pd); } -- cgit v1.2.3-60-g2f50