git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@479 54d463be-8e91-2dee-dedb-b68131a5f0ec
@@ -1,5 +1,6 @@
Date Added
12/6
+ * fixed a server crash in party sharing exp [MouseJstr]
* fixed a server crash in BS_FINDINGORE [MouseJstr]
* Updated Chase Walk [celest]
* Added 'checkoption1' and 'checkoption2' script functions - Refer to
@@ -589,7 +589,7 @@ int party_exp_share(struct party *p,int map,int base_exp,int job_exp,int zeny)
if(c==0)
return 0;
for(i=0;i<MAX_PARTY;i++)
- if((sd=p->member[i].sd)!=NULL && sd->bl.m==map) {
+ if((sd=p->member[i].sd)!=NULL && sd->bl.m==map && session[sd->fd] != NULL) {
#ifdef TWILIGHT
pc_gainexp(sd,base_exp,job_exp);
#else