Browse Source

- Fixed party invite crashing when a player is not online. (bugreport:5506)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15791 54d463be-8e91-2dee-dedb-b68131a5f0ec
epoque11 13 years ago
parent
commit
d48dad422b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/party.c

+ 1 - 1
src/map/party.c

@@ -358,7 +358,7 @@ int party_invite(struct map_session_data *sd,struct map_session_data *tsd)
 	}
 	
 	// confirm whether the account has the ability to invite before checking the player
-	if( !pc_has_permission(sd, PC_PERM_PARTY) || !pc_has_permission(tsd, PC_PERM_PARTY) ) {
+	if( !pc_has_permission(sd, PC_PERM_PARTY) || (tsd && !pc_has_permission(tsd, PC_PERM_PARTY)) ) {
 		clif_displaymessage(sd->fd, msg_txt(81)); // "Your GM level doesn't authorize you to preform this action on the specified player."
 		return 0;
 	}