Browse Source

Fixed a bug in party creation

Fixes #1674
Thanks to @admkakaroto and @Grantea
Lemongrass3110 8 years ago
parent
commit
485ae6f8cf
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/map/party.c

+ 8 - 0
src/map/party.c

@@ -435,6 +435,14 @@ int party_reply_invite(struct map_session_data *sd,int party_id,int flag)
 		return 0;
 		return 0;
 	}
 	}
 
 
+	// The character is already in a party, possibly left a party invite open and created his own party
+	if( sd->status.party_id != 0 ){
+		// On Aegis no rejection packet is sent to the inviting player
+		sd->party_invite = 0;
+		sd->party_invite_account = 0;
+		return 0;
+	}
+
 	tsd = map_id2sd(sd->party_invite_account);
 	tsd = map_id2sd(sd->party_invite_account);
 
 
 	if( flag == 1 && !sd->party_creating && !sd->party_joining ) { // accepted and allowed
 	if( flag == 1 && !sd->party_creating && !sd->party_joining ) { // accepted and allowed