浏览代码

Fixed a bug in party creation

Fixes #1674
Thanks to @admkakaroto and @Grantea
Lemongrass3110 8 年之前
父节点
当前提交
485ae6f8cf
共有 1 个文件被更改,包括 8 次插入0 次删除
  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;
 	}
 
+	// 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);
 
 	if( flag == 1 && !sd->party_creating && !sd->party_joining ) { // accepted and allowed