summaryrefslogtreecommitdiff
path: root/src/char_sql/int_mercenary.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-02 21:18:33 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-02 21:18:33 +0000
commit2b5634faa20cdac69f94ba5abd4ea3fca8c44c2d (patch)
tree7d5422070e550df48472ace99eabd3640974402d /src/char_sql/int_mercenary.c
parentf4444897e96b9278ca952686e7dc0561a8b30efc (diff)
downloadhercules-2b5634faa20cdac69f94ba5abd4ea3fca8c44c2d.tar.gz
hercules-2b5634faa20cdac69f94ba5abd4ea3fca8c44c2d.tar.bz2
hercules-2b5634faa20cdac69f94ba5abd4ea3fca8c44c2d.tar.xz
hercules-2b5634faa20cdac69f94ba5abd4ea3fca8c44c2d.zip
- Fixed problem deleting characters.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13186 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/int_mercenary.c')
-rw-r--r--src/char_sql/int_mercenary.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/char_sql/int_mercenary.c b/src/char_sql/int_mercenary.c
index 8658707f5..b6c4d6313 100644
--- a/src/char_sql/int_mercenary.c
+++ b/src/char_sql/int_mercenary.c
@@ -58,10 +58,10 @@ bool mercenary_owner_tosql(int char_id, struct mmo_charstatus *status)
bool mercenary_owner_delete(int char_id)
{
if( SQL_ERROR == Sql_Query(sql_handle, "DELETE FROM `mercenary_owner` WHERE `char_id` = '%d'", char_id) )
- {
Sql_ShowDebug(sql_handle);
- return false;
- }
+
+ if( SQL_ERROR == Sql_Query(sql_handle, "DELETE FROM `mercenary` WHERE `char_id` = '%d'", char_id) )
+ Sql_ShowDebug(sql_handle);
return true;
}