Bläddra i källkod

- itemdb_reload will clear the itemdb before reloading info instead of only clearing the scripts now.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7596 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 år sedan
förälder
incheckning
4bbce8d776
2 ändrade filer med 3 tillägg och 1 borttagningar
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/itemdb.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/07/10
+	* itemdb_reload will clear the itemdb before reloading info instead of only
+	  clearing the scripts now. [Skotlex]
 	* Some cleaning of skill_castend_pos2, fixed Gospel, and a
 	  map_freeblock_unlock misplacement. [Skotlex]
 	* Sense/Estimation will now display the mob info window to all party

+ 1 - 1
src/map/itemdb.c

@@ -1193,7 +1193,7 @@ static int itemdb_final_sub (DBKey key,void *data,va_list ap)
 void itemdb_reload(void)
 {
 	// free up all item scripts first
-	item_db->foreach(item_db, itemdb_final_sub, 0);
+	item_db->clear(item_db, itemdb_final_sub, 0);
 	itemdb_read();
 }