diff options
author | Haru <haru@dotalux.com> | 2020-06-28 01:36:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-28 01:36:35 +0200 |
commit | ebeabea9f0b586321e36758f6f53a026f0ac7da3 (patch) | |
tree | b435314c14a7541c36cf01714da21593bf3cc5ca /src | |
parent | 3dd6079f6a8b863ee0996a9e79e99bbb3f51f16c (diff) | |
parent | f5938f7e7cc21d46f5c9f9f4407e6b5eb5684dba (diff) | |
download | hercules-ebeabea9f0b586321e36758f6f53a026f0ac7da3.tar.gz hercules-ebeabea9f0b586321e36758f6f53a026f0ac7da3.tar.bz2 hercules-ebeabea9f0b586321e36758f6f53a026f0ac7da3.tar.xz hercules-ebeabea9f0b586321e36758f6f53a026f0ac7da3.zip |
Merge pull request #2762 from Kenpachi2k13/remove_party_member
Fix updating SQL data when removing party member or options are changed in inter_party_check_lv()
Diffstat (limited to 'src')
-rw-r--r-- | src/char/int_party.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char/int_party.c b/src/char/int_party.c index c16eea34e..62633b4a8 100644 --- a/src/char/int_party.c +++ b/src/char/int_party.c @@ -67,6 +67,7 @@ static int inter_party_check_lv(struct party_data *p) if (p->party.exp == 1 && inter_party->check_exp_share(p) == 0) { p->party.exp = 0; mapif->party_optionchanged(0, &p->party, 0, 0); + inter_party->tosql(&p->party, PS_BASIC, 0); return 0; } @@ -577,9 +578,9 @@ static bool inter_party_leave(int party_id, int account_id, int char_id) if (p->party.member[i].online == 1) p->party.member[i].online = 0; + inter_party->tosql(&p->party, PS_DELMEMBER, i); memset(&p->party.member[i], 0, sizeof(struct party_member)); inter_party->calc_state(p); /// Count online/offline members and check family state and even share range. - inter_party->tosql(&p->party, PS_DELMEMBER, i); if (inter_party->check_empty(p) == 0) mapif->party_info(-1, &p->party, 0); |