summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-25 14:31:08 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-25 14:31:08 +0000
commita7fa1d04b3eb2c0ce08451e624b24fa1de1ac832 (patch)
tree93a9f62545cc8d7823359f90f8a6dc23aa209277 /src/map
parentb7d7eddffe6c941f44eeb8b05d5fe094e0f40b97 (diff)
downloadhercules-a7fa1d04b3eb2c0ce08451e624b24fa1de1ac832.tar.gz
hercules-a7fa1d04b3eb2c0ce08451e624b24fa1de1ac832.tar.bz2
hercules-a7fa1d04b3eb2c0ce08451e624b24fa1de1ac832.tar.xz
hercules-a7fa1d04b3eb2c0ce08451e624b24fa1de1ac832.zip
- Fixed party invite crashing when a player is not online. (bugreport:5506)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15791 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/party.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/party.c b/src/map/party.c
index caf6798d4..04757f737 100644
--- a/src/map/party.c
+++ b/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;
}