浏览代码

Fixed the 0x3001 in inter.c for the char wisper on splittet mapservers (interchat)^^ [Sirius]


git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1121 54d463be-8e91-2dee-dedb-b68131a5f0ec
sirius 20 年之前
父节点
当前提交
f1290e68d2
共有 2 个文件被更改,包括 9 次插入2 次删除
  1. 2 0
      Changelog-SVN.txt
  2. 7 2
      src/char_sql/inter.c

+ 2 - 0
Changelog-SVN.txt

@@ -1,6 +1,8 @@
 Date	Added
 
 02/16
+	* Char SQL: Fixed the Whisper chat on splittet mapservers (i think now all features work!) [Sirius]
+
         * Added 3 more of the new card effects -- check item_bonus.txt [celest]
 
         * Added 'bonus4' to support the new card effects that might need up to 4

+ 7 - 2
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;
 }