summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorStreusel <advance_me@hotmail.de>2013-02-18 17:58:43 -0800
committerStreusel <advance_me@hotmail.de>2013-02-18 17:58:43 -0800
commit389695ac4c70f67771a6b58ffd29892639996170 (patch)
tree3a69a958cc2363d4aca7d16bc702e9d99518c0e8 /src/map/atcommand.c
parentc6882c741f314f633e681066adb018738e5bb585 (diff)
parent9c32aa600de9dc10a91d0d96f312a95757998e15 (diff)
downloadhercules-389695ac4c70f67771a6b58ffd29892639996170.tar.gz
hercules-389695ac4c70f67771a6b58ffd29892639996170.tar.bz2
hercules-389695ac4c70f67771a6b58ffd29892639996170.tar.xz
hercules-389695ac4c70f67771a6b58ffd29892639996170.zip
Merge branch 'master' of github.com:HerculesWS/Hercules
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c5
1 files changed, 2 insertions, 3 deletions
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;
}