summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-09-20 20:17:43 -0300
committershennetsind <ind@henn.et>2014-09-20 20:17:43 -0300
commit5b21335d6a08b5e9fd514598d40487da9fc9a868 (patch)
treec9a7225993052378b009024050f9ba525390f5eb /src/map
parent28a0672489a9cce375f5caf8e1b372b677363e8e (diff)
downloadhercules-5b21335d6a08b5e9fd514598d40487da9fc9a868.tar.gz
hercules-5b21335d6a08b5e9fd514598d40487da9fc9a868.tar.bz2
hercules-5b21335d6a08b5e9fd514598d40487da9fc9a868.tar.xz
hercules-5b21335d6a08b5e9fd514598d40487da9fc9a868.zip
Fixed Bug 8318
Fixed @at crash as described in 8318. Related to 4147d9f7966e Special Thanks to Haruna! <3 http://hercules.ws/board/tracker/issue-8318-something-crash-with-autotrade/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 299ee321a..d6b2ae1ab 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -9962,8 +9962,7 @@ bool atcommand_exec(const int fd, struct map_session_data *sd, const char *messa
//Attempt to use the command
if ( (info->func(fd, (*atcmd_msg == atcommand->at_symbol) ? sd : ssd, command, params,info) != true) ) {
#ifdef AUTOTRADE_PERSISTENCY
- // Autotrade was successful if standalone is set
- if( ((*atcmd_msg == atcommand->at_symbol) ? sd->state.standalone : ssd->state.standalone) )
+ if( info->func == atcommand_autotrade ) /** autotrade deletes caster, so we got nothing more to do here **/
return true;
#endif
sprintf(output,msg_txt(154), command); // %s failed.