summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-02-19 17:10:57 -0300
committerpanikon <panikon@zoho.com>2014-02-19 17:10:57 -0300
commitc4a9dd3f2804b75c1d49b5ab58a3ba80ea4303c2 (patch)
tree53b779650a2821dc8bf2a9deb00d5a03890449fe /src/char/char.c
parent58544d7f610261a903b3e843a795efd7571b2d56 (diff)
parentd0b9510cf0d7a47e53aa341462a1175326dfc09d (diff)
downloadhercules-c4a9dd3f2804b75c1d49b5ab58a3ba80ea4303c2.tar.gz
hercules-c4a9dd3f2804b75c1d49b5ab58a3ba80ea4303c2.tar.bz2
hercules-c4a9dd3f2804b75c1d49b5ab58a3ba80ea4303c2.tar.xz
hercules-c4a9dd3f2804b75c1d49b5ab58a3ba80ea4303c2.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c4
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;