summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-06-28 12:43:57 +0200
committerDennis Friis <peavey@inspircd.org>2009-06-28 14:38:53 +0200
commit569c7674349ba86822b648060ac01de129c31d37 (patch)
treefa4c3cd96e2e13d1aff2a31f929dec80c273de35 /src/map
parente174b9f8b90de1da5f934ff070f4060420ecbc89 (diff)
downloadtmwa-569c7674349ba86822b648060ac01de129c31d37.tar.gz
tmwa-569c7674349ba86822b648060ac01de129c31d37.tar.bz2
tmwa-569c7674349ba86822b648060ac01de129c31d37.tar.xz
tmwa-569c7674349ba86822b648060ac01de129c31d37.zip
Really fix crash on adding offline partner. Derived from ea stable.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/party.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 73f85c4..7f5605c 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -251,10 +251,12 @@ 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(battle_config.error_log)
- printf("party: member added error %d is not online\n",account_id);
- intif_party_leave(party_id,account_id); // キャラ側に登録できなかったため脱退要求を出す
+ if(sd == NULL){
+ if (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); // キャラ側に登録できなかったため脱退要求を出す
+ }
return 0;
}
sd2=map_id2sd(sd->party_invite_account);