diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-05 05:23:42 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-05 05:23:42 +0000 |
commit | e96413206e743d6d4d20955e41740104164997c7 (patch) | |
tree | 6b977039307d4012bfecc17c89ee6e2cd39995b1 | |
parent | 9ee58cbba214b49a0399f564478e22790080fa72 (diff) | |
download | hercules-e96413206e743d6d4d20955e41740104164997c7.tar.gz hercules-e96413206e743d6d4d20955e41740104164997c7.tar.bz2 hercules-e96413206e743d6d4d20955e41740104164997c7.tar.xz hercules-e96413206e743d6d4d20955e41740104164997c7.zip |
update
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@454 54d463be-8e91-2dee-dedb-b68131a5f0ec
-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; |