summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-03-12 18:36:58 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-03-12 18:36:58 +0800
commitdc05ef11b1fbbccdd54eba54b93d3eba0b032970 (patch)
treecd3aa233f83bc847c956164e112c97b2b57f51c9 /src/map/pc.c
parent2f9a514a7118724e2954ac96c67e7396ec61d0b4 (diff)
parent571d9e25008d8b386e28d7f1fd02f2690edf1f8c (diff)
downloadhercules-dc05ef11b1fbbccdd54eba54b93d3eba0b032970.tar.gz
hercules-dc05ef11b1fbbccdd54eba54b93d3eba0b032970.tar.bz2
hercules-dc05ef11b1fbbccdd54eba54b93d3eba0b032970.tar.xz
hercules-dc05ef11b1fbbccdd54eba54b93d3eba0b032970.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 87f14bcd9..5eb682415 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -10477,6 +10477,12 @@ void pc_autotrade_prepare(struct map_session_data *sd) {
sex = sd->status.sex;
safestrncpy(title, sd->message, sizeof(title));
+ sd->npc_id = 0;
+ sd->npc_shopid = 0;
+ if (sd->st) {
+ sd->st->state = END;
+ sd->st = NULL;
+ }
map->quit(sd);
chrif->auth_delete(account_id, char_id, ST_LOGOUT);