summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-27 09:44:47 -0200
committershennetsind <ind@henn.et>2013-11-27 09:44:47 -0200
commit85d99a3207a34eb5abdc3bafd44d9e7d10082bc6 (patch)
tree65c4fe275e43519db0f1de074380de2329591fc4 /src/map
parentfdb6de1aa34086fd4d22ae127437727f556cea3c (diff)
downloadhercules-85d99a3207a34eb5abdc3bafd44d9e7d10082bc6.tar.gz
hercules-85d99a3207a34eb5abdc3bafd44d9e7d10082bc6.tar.bz2
hercules-85d99a3207a34eb5abdc3bafd44d9e7d10082bc6.tar.xz
hercules-85d99a3207a34eb5abdc3bafd44d9e7d10082bc6.zip
Fixed Bug 7495
warping (e.g. @recall) of autotrade characters no longer leaves them in memory limbo, the trigger that'd be expected from the client is now called for autotrade units so that they complete the warp procedure in full, vendings are loaded properly as well. http://hercules.ws/board/tracker/issue-7495-autotrade/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 02b4d0692..b5fa9268e 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5059,6 +5059,10 @@ int pc_setpos(struct map_session_data* sd, unsigned short mapindex, int x, int y
sd->md->bl.y = sd->md->ud.to_y = y;
sd->md->ud.dir = sd->ud.dir;
}
+
+ /* given autotrades have no clients you have to trigger this manually otherwise they get stuck in memory limbo bugreport:7495 */
+ if( sd->state.autotrade )
+ clif->pLoadEndAck(0,sd);
return 0;
}