summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/pet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 79645cda8..94d652aa5 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -1416,7 +1416,7 @@ int do_final_pet(void) {
int i;
for(i = 0;i < MAX_PET_DB; i++) {
if(pet_db[i].script) {
- aFree(pet_db[i].script);
+ script_free_code(pet_db[i].script);
pet_db[i].script = NULL;
}
}