summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-10 14:54:44 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-10 14:54:44 +0000
commit436e7522b5dd736e0ab955028ac14b4cbf77810d (patch)
tree85bdd76450da7c68ee1e08a6c9db6bf178464a74
parent454f2747e5cc8d222b8bdbe39bfda2f433003747 (diff)
downloadhercules-436e7522b5dd736e0ab955028ac14b4cbf77810d.tar.gz
hercules-436e7522b5dd736e0ab955028ac14b4cbf77810d.tar.bz2
hercules-436e7522b5dd736e0ab955028ac14b4cbf77810d.tar.xz
hercules-436e7522b5dd736e0ab955028ac14b4cbf77810d.zip
- itemdb_reload will clear the itemdb before reloading info instead of only clearing the scripts now.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7596 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/itemdb.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 9540bb1ee..832868581 100644
--- a/Changelog-Trunk.txt
+++ b/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
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index c535b8674..56b1182b7 100644
--- a/src/map/itemdb.c
+++ b/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();
}