diff options
author | Haru <haru@dotalux.com> | 2015-09-26 04:11:41 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-10-11 00:24:22 +0200 |
commit | 657e7f9c07bc1445ce785cd11772664a1848ea5a (patch) | |
tree | b0b6ce19dfd5946fe6a0cf6c33eac78e357d4832 /src/map/party.c | |
parent | 70265291d62280c525adc317158e9f531e0147ff (diff) | |
download | hercules-657e7f9c07bc1445ce785cd11772664a1848ea5a.tar.gz hercules-657e7f9c07bc1445ce785cd11772664a1848ea5a.tar.bz2 hercules-657e7f9c07bc1445ce785cd11772664a1848ea5a.tar.xz hercules-657e7f9c07bc1445ce785cd11772664a1848ea5a.zip |
Cleanup of the HPluginData implementation (second part)
- Changed the hplugin_data_store's array into a VECTOR.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/party.c')
-rw-r--r-- | src/map/party.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/party.c b/src/map/party.c index 4735dfc42..f7e7d431c 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -103,8 +103,7 @@ int party_db_final(DBKey key, DBData *data, va_list ap) { if (p->instance) aFree(p->instance); - HPM->data_store_destroy(p->hdata); - p->hdata = NULL; + HPM->data_store_destroy(&p->hdata); } return 0; } @@ -600,8 +599,7 @@ int party_broken(int party_id) if( p->instance ) aFree(p->instance); - HPM->data_store_destroy(p->hdata); - p->hdata = NULL; + HPM->data_store_destroy(&p->hdata); idb_remove(party->db,party_id); return 0; |