summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-19 17:04:12 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-19 17:04:12 +0000
commit56cff3487e8605b94776c21860ed61ee30de01fc (patch)
tree0c4b0640848e1afa18a85a4d14268c578eae8a7b /src/char_sql
parent1600b2069d640c1d199811d4c83814efb180cd5c (diff)
downloadhercules-56cff3487e8605b94776c21860ed61ee30de01fc.tar.gz
hercules-56cff3487e8605b94776c21860ed61ee30de01fc.tar.bz2
hercules-56cff3487e8605b94776c21860ed61ee30de01fc.tar.xz
hercules-56cff3487e8605b94776c21860ed61ee30de01fc.zip
Fixed a client crash during SQL char selection if you for some reason had more than 9 characters in your account
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9674 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 5289694d8..4c1358312 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -1686,7 +1686,7 @@ int mmo_char_send006b(int fd, struct char_session_data *sd) {
set_char_online(-1, 99,sd->account_id);
//search char.
- sprintf(tmp_sql, "SELECT `char_id` FROM `%s` WHERE `account_id` = '%d'",char_db, sd->account_id);
+ sprintf(tmp_sql, "SELECT `char_id` FROM `%s` WHERE `account_id` = '%d' AND `char_num` < '9'",char_db, sd->account_id);
if (mysql_query(&mysql_handle, tmp_sql)) {
ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));
ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql);