diff options
Diffstat (limited to 'src/char_sql')
-rw-r--r-- | src/char_sql/char.c | 3 | ||||
-rw-r--r-- | src/char_sql/int_homun.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index ea34d9b10..52a986394 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -32,6 +32,7 @@ #include "db.h" #include "malloc.h" #include "int_guild.h" +#include "int_homun.h" #include "char.h" #ifndef TXT_SQL_CONVERT @@ -1457,7 +1458,7 @@ int delete_char_sql(int char_id, int partner_id) char char_name[NAME_LENGTH], t_name[NAME_LENGTH*2]; //Name needs be escaped. int account_id, party_id, guild_id, hom_id, char_base_level; - sprintf(tmp_sql, "SELECT `name`,`account_id`,`party_id`,`guild_id`,`base_level`,`hom_id` FROM `%s` WHERE `char_id`='%d'",char_db, char_id); + sprintf(tmp_sql, "SELECT `name`,`account_id`,`party_id`,`guild_id`,`base_level`,`homun_id` FROM `%s` WHERE `char_id`='%d'",char_db, char_id); if (mysql_query(&mysql_handle, tmp_sql)) { ShowSQL("DB error - %s\n",mysql_error(&mysql_handle)); diff --git a/src/char_sql/int_homun.c b/src/char_sql/int_homun.c index 206a6a5c1..a7ba26eb6 100644 --- a/src/char_sql/int_homun.c +++ b/src/char_sql/int_homun.c @@ -236,6 +236,7 @@ int mapif_delete_homunculus(int fd) { RFIFOHEAD(fd); mapif_homunculus_deleted(fd, inter_delete_homunculus(RFIFOL(fd,2))); + return 1; } int mapif_rename_homun_ack(int fd, int account_id, int char_id, unsigned char flag, char *name){ |