浏览代码

* Fixed typo (this time it's not my fault) in script_reload() clearing the same db each time o_o

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6708 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance 19 年之前
父节点
当前提交
81efffac73
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 2 0
      Changelog-Trunk.txt
  2. 3 3
      src/map/script.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/05/23
+	* Fixed typo (this time it's not my fault) in script_reload() clearing the same
+	  db each time o_o [Lance]
 	* Fixed sleep command. [Lance]
 	* Added 'setd' support for local NPC scope (') variables. [Lance]
 	* [Scripting Engine Update] New variables are ready to be used. [Lance]

+ 3 - 3
src/map/script.c

@@ -11965,9 +11965,9 @@ int script_reload()
 		script_save_mapreg();
 	
 	mapreg_db->clear(mapreg_db, NULL);
-	mapregstr_db->clear(mapreg_db, NULL);
-	userfunc_db->clear(mapreg_db,do_final_userfunc_sub);
-	scriptlabel_db->clear(mapreg_db, NULL);
+	mapregstr_db->clear(mapregstr_db, NULL);
+	userfunc_db->clear(userfunc_db,do_final_userfunc_sub);
+	scriptlabel_db->clear(scriptlabel_db, NULL);
 
 	if(sleep_db) {
 		struct linkdb_node *n = (struct linkdb_node *)sleep_db;