summaryrefslogtreecommitdiff
path: root/src/char_sql/int_mercenary.c
diff options
context:
space:
mode:
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;
}