summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
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 /src/map/itemdb.c
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
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c2
1 files changed, 1 insertions, 1 deletions
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();
}