diff options
-rw-r--r-- | Changelog.txt | 2 | ||||
-rw-r--r-- | src/map/clif.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Changelog.txt b/Changelog.txt index 18ae6d6ae..d355302f0 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,6 +1,8 @@ Date Added 12/5 * Corrected typo in battle_range [celest] + * Fixed a crash where party chats can be sent to a + partially disconnected player [MouseJstr] 12/4 * Fixed a crash in clif_send when player disconnects but player diff --git a/src/map/clif.c b/src/map/clif.c index bcccadfab..fb01d10fd 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -362,6 +362,8 @@ int clif_send(unsigned char *buf, int len, struct block_list *bl, int type) { if (p) { for(i=0;i<MAX_PARTY;i++){ if ((sd = p->member[i].sd) != NULL) { + if ((session[sd->fd] == NULL) || (session[sd->fd]->session_data == NULL)) + continue; if (sd->bl.id == bl->id && (type == PARTY_WOS || type == PARTY_SAMEMAP_WOS || type == PARTY_AREA_WOS)) continue; |