Преглед на файлове

update

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@454 54d463be-8e91-2dee-dedb-b68131a5f0ec
amber преди 20 години
родител
ревизия
804fe60f9b
променени са 2 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 2 0
      Changelog.txt
  2. 2 0
      src/map/clif.c

+ 2 - 0
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

+ 2 - 0
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;