summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-30 14:44:44 -0200
committershennetsind <ind@henn.et>2013-11-30 14:44:44 -0200
commit6fc1cae2088dd9f450e15728ca4bf4a82fcb8070 (patch)
tree1b43199b27c13d9db23d14a012c41a5b68bda577 /src/map/party.c
parent098dbcf672e04657553b9f1629550e6bc8771af3 (diff)
downloadhercules-6fc1cae2088dd9f450e15728ca4bf4a82fcb8070.tar.gz
hercules-6fc1cae2088dd9f450e15728ca4bf4a82fcb8070.tar.bz2
hercules-6fc1cae2088dd9f450e15728ca4bf4a82fcb8070.tar.xz
hercules-6fc1cae2088dd9f450e15728ca4bf4a82fcb8070.zip
Minor adjustments
- improved @makehomun -1 so that if the homun data hasnt been loaded it is requested. - instances of private types (party/guild/char) no longer create channels, however global types still does (IOT_NONE). - Fixed an issue with party/guild instance data not being freed when either is destroyed (Special Thanks to Yommy). Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 0a7467162..8e3ac3dcf 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -589,6 +589,9 @@ int party_broken(int party_id)
}
}
+ if( p->instance )
+ aFree(p->instance);
+
idb_remove(party->db,party_id);
return 0;
}