summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-18 04:36:58 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-14 20:18:09 +0300
commite4090e4961a858b01f28d6150f01da4c7dbb6000 (patch)
tree3d879edaa69d1aeefb6b5663810824d236341cee
parent2a471f2f94cf31f3b36e33dcb438fc41754554da (diff)
downloadhercules-e4090e4961a858b01f28d6150f01da4c7dbb6000.tar.gz
hercules-e4090e4961a858b01f28d6150f01da4c7dbb6000.tar.bz2
hercules-e4090e4961a858b01f28d6150f01da4c7dbb6000.tar.xz
hercules-e4090e4961a858b01f28d6150f01da4c7dbb6000.zip
Fix sending last packet HC_ACK_CHARINFO_PER_PAGE
-rw-r--r--src/char/char.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 0546e49df..b3169c79e 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -2139,8 +2139,8 @@ static void char_send_HC_ACK_CHARINFO_PER_PAGE(int fd, struct char_session_data
p->packetId = HEADER_HC_ACK_CHARINFO_PER_PAGE;
p->packetLen = chr->mmo_chars_fromsql(sd, WFIFOP(fd, 4), &count) + sizeof(struct PACKET_HC_ACK_CHARINFO_PER_PAGE);
WFIFOSET(fd, p->packetLen);
- // send empty packet if chars count is 3*N, for trigger final code in client
- if (count % 3 != 0) {
+ // send empty packet if chars count is 3, for trigger final code in client
+ if (count == 3) {
WFIFOHEAD(fd, sizeof(struct PACKET_HC_ACK_CHARINFO_PER_PAGE));
p = WFIFOP(fd, 0);
p->packetId = HEADER_HC_ACK_CHARINFO_PER_PAGE;