summaryrefslogtreecommitdiff
path: root/src/map/guild.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/guild.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/guild.c')
-rw-r--r--src/map/guild.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index cba568bd8..cca4da6cf 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -1756,6 +1756,8 @@ int guild_broken(int guild_id,int flag)
clif->chsys_delete(( struct hChSysCh * )g->channel);
}
}
+ if( g->instance )
+ aFree(g->instance);
idb_remove(guild->db,guild_id);
return 0;
}