From bf760554a5cf55d53f3ae23e2f3a1118ce9f13bd Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 18 Feb 2013 21:50:13 -0300 Subject: Fixed Bug #7085 #autotrade now relogs the target, not the caster. http://hercules.ws/board/tracker/issue-7085-autotrade/ Signed-off-by: shennetsind --- src/map/atcommand.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index ed42fdad4..0d56ce9bf 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -5671,12 +5671,11 @@ ACMD_FUNC(autotrade) } sd->state.autotrade = 1; - if( battle_config.at_timeout ) - { + if( battle_config.at_timeout ) { int timeout = atoi(message); status_change_start(&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, 0); } - clif_authfail_fd(fd, 15); + clif_authfail_fd(sd->fd, 15); return 0; } -- cgit v1.2.3-60-g2f50