diff options
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c index d6f6d72fa..99d38d1ae 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -2534,7 +2534,15 @@ int flush_timer(int tid, unsigned int tick, int id, int data){ return 0; } -int id_db_final(void *k,void *d,va_list ap){ return 0; } +int id_db_final(void *k,void *d,va_list ap) +{ + struct mob_data *id; + nullpo_retr(0, id=d); + if(id->lootitem) + free(id->lootitem); + free(id); + return 0; +} int map_db_final(void *k,void *d,va_list ap){ return 0; } int nick_db_final(void *k,void *d,va_list ap){ return 0; } int charid_db_final(void *k,void *d,va_list ap){ return 0; } |