diff options
author | panikon <panikon@zoho.com> | 2014-02-19 20:24:56 -0300 |
---|---|---|
committer | panikon <panikon@zoho.com> | 2014-02-19 20:24:56 -0300 |
commit | d6cd24a757c7254914ef048f71aa7e9d4f493fda (patch) | |
tree | 53b779650a2821dc8bf2a9deb00d5a03890449fe /src/char/char.c | |
parent | e6b107b80355201fa958a74860d59a5034bb839d (diff) | |
download | hercules-d6cd24a757c7254914ef048f71aa7e9d4f493fda.tar.gz hercules-d6cd24a757c7254914ef048f71aa7e9d4f493fda.tar.bz2 hercules-d6cd24a757c7254914ef048f71aa7e9d4f493fda.tar.xz hercules-d6cd24a757c7254914ef048f71aa7e9d4f493fda.zip |
Readding last merge as last revert was unintended. Sorry for the trouble.
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c index 1ee3cfd1d..5b497bd0c 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -3574,6 +3574,10 @@ int parse_frommap(int fd) cid = RFIFOL(fd, 8); count = RFIFOW(fd, 12); + /* clear; ensure no left overs e.g. permanent */ + if( SQL_ERROR == SQL->Query(sql_handle, "DELETE FROM `%s` WHERE `account_id` = '%d' AND `char_id`='%d'", scdata_db, aid, cid) ) + Sql_ShowDebug(sql_handle); + if( count > 0 ) { struct status_change_data data; |