summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 4b40a93e7..4972f2452 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -1130,11 +1130,11 @@ static int itemdb_readdb(void)
id->script=NULL;
}
if (id->equip_script) {
- aFree(id->equip_script);
+ script_free_code(id->equip_script);
id->equip_script=NULL;
}
if (id->unequip_script) {
- aFree(id->unequip_script);
+ script_free_code(id->unequip_script);
id->unequip_script=NULL;
}