From 5b21335d6a08b5e9fd514598d40487da9fc9a868 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 20 Sep 2014 20:17:43 -0300 Subject: 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 --- src/map/atcommand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/map/atcommand.c') 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. -- cgit v1.2.3-60-g2f50