From 85d99a3207a34eb5abdc3bafd44d9e7d10082bc6 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 27 Nov 2013 09:44:47 -0200 Subject: 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 --- src/map/pc.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3-70-g09d2