From acc992ac2838f6380ebf2b2f8a514e86c2b750d9 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 19 Jan 2014 02:58:36 -0200 Subject: HPM Custom Data Struct Expansion: map/instance/party/guild As requested by the community in http://hercules.ws/board/topic/3832-hpm-custom-data-struct-for-instance-data-guild-data-and-party-data/ Signed-off-by: shennetsind --- src/map/map.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index bb9e53cdb..07881ea56 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3116,6 +3116,14 @@ void do_final_maps(void) { if( map->list[i].qi_data ) aFree(map->list[i].qi_data); + for( v = 0; v < map->list[i].hdatac; v++ ) { + if( map->list[i].hdata[v]->flag.free ) { + aFree(map->list[i].hdata[v]->data); + } + aFree(map->list[i].hdata[v]); + } + if( map->list[i].hdata ) + aFree(map->list[i].hdata); } map->zone_db_clear(); -- cgit v1.2.3-70-g09d2