summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index d9b7ea7e1..268125ae1 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6885,7 +6885,7 @@ int pc_dead(struct map_session_data *sd,struct block_list *src) {
npc->script_event(sd,NPCE_DIE);
// Clear anything NPC-related when you die and was interacting with one.
- if (sd->npc_id || sd->npc_shopid) {
+ if ( (sd->npc_id || sd->npc_shopid) && sd->state.dialog) {
if (sd->state.using_fake_npc) {
clif->clearunit_single(sd->npc_id, CLR_OUTSIGHT, sd->fd);
sd->state.using_fake_npc = 0;