From 436e7522b5dd736e0ab955028ac14b4cbf77810d Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 10 Jul 2006 14:54:44 +0000 Subject: - 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 --- Changelog-Trunk.txt | 2 ++ src/map/itemdb.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3-70-g09d2