summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-06-22 21:31:09 +0200
committerDennis Friis <peavey@inspircd.org>2009-06-25 01:13:20 +0200
commit353fd0ec49222512a4292fb1452c2c82c8e3a38d (patch)
treeb4230eeb280266bcf0fef9055b18be9c3d90c5db /src/map
parent0fd8d8c8b8d9d1e422537369d2ea1ab677fa0a5b (diff)
downloadtmwa-353fd0ec49222512a4292fb1452c2c82c8e3a38d.tar.gz
tmwa-353fd0ec49222512a4292fb1452c2c82c8e3a38d.tar.bz2
tmwa-353fd0ec49222512a4292fb1452c2c82c8e3a38d.tar.xz
tmwa-353fd0ec49222512a4292fb1452c2c82c8e3a38d.zip
Fix a possible crash when adding a party member. Thanks Kage for spotting.
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 7d8cdaf..73f85c4 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -251,7 +251,7 @@ int party_reply_invite(struct map_session_data *sd,int account_id,int flag)
int party_member_added(int party_id,int account_id,int flag)
{
struct map_session_data *sd= map_id2sd(account_id),*sd2;
- if(sd==NULL && flag==0){
+ if(sd==NULL || flag==0){
if(battle_config.error_log)
printf("party: member added error %d is not online\n",account_id);
intif_party_leave(party_id,account_id); // キャラ側に登録できなかったため脱退要求を出す