Skip to content

Commit 14b0edc

Browse files
authored
Merge pull request scp-fs2open#7486 from Goober5000/fix/stats_alltime_kills
fix stats sync in multiplayer
2 parents c3f9ce3 + 10288c1 commit 14b0edc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

code/network/multimsgs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6647,7 +6647,7 @@ void send_player_stats_block_packet(net_player *pl, int stats_code, net_player *
66476647
ADD_USHORT(static_cast<ushort>(offset));
66486648
ADD_USHORT(static_cast<ushort>(len));
66496649

6650-
for (idx = offset; idx < len; idx++) {
6650+
for (idx = offset; idx < offset + len; idx++) {
66516651
ADD_INT(sc->m_okKills[idx]);
66526652
}
66536653
break;
@@ -6658,7 +6658,7 @@ void send_player_stats_block_packet(net_player *pl, int stats_code, net_player *
66586658
ADD_USHORT(static_cast<ushort>(offset));
66596659
ADD_USHORT(static_cast<ushort>(len));
66606660

6661-
for (idx = offset; idx < len; idx++) {
6661+
for (idx = offset; idx < offset + len; idx++) {
66626662
ADD_INT(sc->kills[idx]);
66636663
}
66646664
break;

0 commit comments

Comments
 (0)