summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
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 aad38efa5..0a5b791fe 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -306,7 +306,7 @@ int party_recv_info(const struct party *sp, int char_id)
// Leader has changed
int k;
ARR_FIND(0, MAX_PARTY, k, sp->member[k].leader == 1);
- if (i < MAX_PARTY) {
+ if (k < MAX_PARTY) {
clif->PartyLeaderChanged(map->id2sd(sp->member[k].account_id), 0, sp->member[k].account_id);
} else {
party->broken(p->party.party_id); // Should not happen, Party is leaderless, disband