summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
authorsirius <sirius@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-16 20:52:02 +0000
committersirius <sirius@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-16 20:52:02 +0000
commit5a594c42919b88b5691b071af2f44c7d3c03912a (patch)
treee804efd085f227c3a9ab0d4104c83fa0ac68a3e9 /src/char_sql
parentd8465064129398f9c6010eacc835bca139977704 (diff)
downloadhercules-5a594c42919b88b5691b071af2f44c7d3c03912a.tar.gz
hercules-5a594c42919b88b5691b071af2f44c7d3c03912a.tar.bz2
hercules-5a594c42919b88b5691b071af2f44c7d3c03912a.tar.xz
hercules-5a594c42919b88b5691b071af2f44c7d3c03912a.zip
Fixed the 0x3001 in inter.c for the char wisper on splittet mapservers (interchat)^^ [Sirius]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1121 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/inter.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/char_sql/inter.c b/src/char_sql/inter.c
index 7102b35be..0f956118c 100644
--- a/src/char_sql/inter.c
+++ b/src/char_sql/inter.c
@@ -431,7 +431,7 @@ int mapif_parse_WisRequest(int fd) {
printf("inter: Wis message doesn't exist.\n");
return 0;
}
- sprintf (tmp_sql, "SELECT `name` FROM `%s` WHERE `char_id`='%d'",char_db, (int) RFIFOP(fd,28));
+ sprintf (tmp_sql, "SELECT `name` FROM `%s` WHERE `name`='%s'",char_db, RFIFOP(fd,28));
if(mysql_query(&mysql_handle, tmp_sql) ) {
printf("DB server Error - %s\n", mysql_error(&mysql_handle) );
}
@@ -474,7 +474,12 @@ int mapif_parse_WisRequest(int fd) {
mapif_wis_message(wd);
}
}
-
+
+ //Freeing ... O.o
+ if(sql_res){
+ mysql_free_result(sql_res);
+ }
+
return 0;
}