diff options
author | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-06 00:25:25 +0000 |
---|---|---|
committer | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-06 00:25:25 +0000 |
commit | fad2ac5d76270e88d7e809da2d663e80851ae038 (patch) | |
tree | 11f54f06d68d82e700c674417a3be91647a1cdb8 /src/map/storage.c | |
parent | 45fb3e556069024d6ef2f96b09837077555c9417 (diff) | |
download | hercules-fad2ac5d76270e88d7e809da2d663e80851ae038.tar.gz hercules-fad2ac5d76270e88d7e809da2d663e80851ae038.tar.bz2 hercules-fad2ac5d76270e88d7e809da2d663e80851ae038.tar.xz hercules-fad2ac5d76270e88d7e809da2d663e80851ae038.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@922 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/storage.c')
-rw-r--r-- | src/map/storage.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/map/storage.c b/src/map/storage.c index 3944f1ac1..f0e22c71d 100644 --- a/src/map/storage.c +++ b/src/map/storage.c @@ -62,9 +62,24 @@ int do_init_storage(void) // map.c::do_init()から呼ばれる guild_storage_db=numdb_init(); return 1; } - -void do_final_storage(void) // map.c::do_final()から呼ばれる +static int guild_storage_db_final(void *key,void *data,va_list ap) +{ + struct guild_storage *gstor=data; + free(gstor); + return 0; +} +static int storage_db_final(void *key,void *data,va_list ap) +{ + struct storage *stor=data; + free(stor); + return 0; +} +void do_final_storage(void) // by [MC Cameri] { + if (storage_db) + numdb_final(storage_db,storage_db_final); + if (guild_storage_db) + numdb_final(guild_storage_db,guild_storage_db_final); } struct storage *account2storage(int account_id) |