Skip to content

Commit bcf1be3

Browse files
Merge pull request #3312 from guilherme-gm/fix-online-accounts
Fix size of PACKET_CHARLOGIN_ONLINE_ACCOUNTS
2 parents 216c752 + 1fed71a commit bcf1be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/char/char.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5329,7 +5329,7 @@ static int char_send_accounts_tologin(int tid, int64 tick, int id, intptr_t data
53295329
p->packetLength = sizeof(struct PACKET_CHARLOGIN_ONLINE_ACCOUNTS) + sizeof(*p->accounts) * i;
53305330
p->list_length = i;
53315331

5332-
WFIFOSET(chr->login_fd, len);
5332+
WFIFOSET(chr->login_fd, p->packetLength);
53335333
}
53345334
return 0;
53355335
}

0 commit comments

Comments
 (0)