diff options
Diffstat (limited to 'src/map/chat.c')
-rw-r--r-- | src/map/chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chat.c b/src/map/chat.c index 413a4cf10..7306c70cf 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -174,9 +174,9 @@ int chat_leavechat(struct map_session_data* sd, bool kicked) if( cd->users == 0 && cd->owner->type == BL_PC ) { // Delete empty chatroom clif_clearchat(cd, 0); + map_deliddb(&cd->bl); map_delblock(&cd->bl); map_freeblock(&cd->bl); - map_deliddb(&cd->bl); return 1; } @@ -327,9 +327,9 @@ int chat_deletenpcchat(struct npc_data* nd) chat_npckickall(cd); clif_clearchat(cd, 0); + map_deliddb(&cd->bl); map_delblock(&cd->bl); map_freeblock(&cd->bl); - map_deliddb(&cd->bl); nd->chat_id = 0; return 0; |