summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-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();
}