From da905aa66028e4bdf66ce54cf3649bb213099728 Mon Sep 17 00:00:00 2001 From: Matias Date: Tue, 25 Jun 2013 17:59:09 -0400 Subject: - Fixing an isue with Disguise that'd make chatrooms disappear when @disguise'ing after creating a chat --- src/map/pc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 0d1a99175..7a423e3fe 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -18,6 +18,7 @@ #include "atcommand.h" // get_atcommand_level() #include "battle.h" // battle_config #include "battleground.h" +#include "chat.h" #include "chrif.h" #include "clif.h" #include "date.h" // is_day_of_*() @@ -1692,6 +1693,13 @@ int pc_disguise(struct map_session_data *sd, int class_) { clif->cartlist(sd); clif->updatestatus(sd,SP_CARTINFO); } + if (sd->chatID) { + struct chat_data* cd; + nullpo_retr(1, sd); + cd = (struct chat_data*)map_id2bl(sd->chatID); + if( cd != NULL || (struct block_list*)sd == cd->owner ) + clif->dispchat(cd,0); + } } return 1; } -- cgit v1.2.3-60-g2f50