summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 0918a0406..519e20d77 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4447,10 +4447,8 @@ int pc_dead(struct map_session_data *sd,struct block_list *src)
sd->pet.intimate = 0;
clif_send_petdata(sd,1,sd->pet.intimate);
}
- if(sd->pd->target_id){ // Unlock all targets...
- unit_stop_attack(&sd->pd->bl);
- sd->pd->target_id = 0;
- }
+ if(sd->pd->target_id) // Unlock all targets...
+ pet_unlocktarget(&sd->pd);
}
// Leave duel if you die [LuzZza]