diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-23 15:59:40 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-23 15:59:40 +0000 |
commit | 125ff2ca6b79b278576f7ddbbd6ac99526b7a852 (patch) | |
tree | 71cbea2eb226f8d7b2b49f18f97e7a6b325264fa /src/map/party.c | |
parent | 381cc32d022fad29f9b36002cee4da84e3fef350 (diff) | |
download | hercules-125ff2ca6b79b278576f7ddbbd6ac99526b7a852.tar.gz hercules-125ff2ca6b79b278576f7ddbbd6ac99526b7a852.tar.bz2 hercules-125ff2ca6b79b278576f7ddbbd6ac99526b7a852.tar.xz hercules-125ff2ca6b79b278576f7ddbbd6ac99526b7a852.zip |
* Added bAddItemHealRate
* Fixed a crash if adding an offline player to a party
* Fixed a crash with Warp
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1169 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r-- | src/map/party.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/map/party.c b/src/map/party.c index 6c6bf9567..85774c33b 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -250,11 +250,13 @@ 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); // キャラ側に登録できなかったため脱退要求を出す + struct map_session_data *sd = map_id2sd(account_id),*sd2; + 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); |