summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c6
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;