summaryrefslogtreecommitdiff
path: root/src/map/instance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/instance.c')
-rw-r--r--src/map/instance.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/instance.c b/src/map/instance.c
index 7213c43a1..0936a5ace 100644
--- a/src/map/instance.c
+++ b/src/map/instance.c
@@ -588,8 +588,7 @@ void instance_destroy(int instance_id) {
instance->list[instance_id].state = INSTANCE_FREE;
instance->list[instance_id].num_map = 0;
- HPM->data_store_destroy(instance->list[instance_id].hdata);
- instance->list[instance_id].hdata = NULL;
+ HPM->data_store_destroy(&instance->list[instance_id].hdata);
}
/*--------------------------------------