diff options
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |