off-by-one

This commit is contained in:
Dominik Maier 2020-12-13 21:56:11 +01:00
parent 3b6d11ce5d
commit d4081af8ed

View File

@ -255,7 +255,7 @@ where
} => { } => {
// TODO: The stats buffer should be added on client add. // TODO: The stats buffer should be added on client add.
let client_stat_count = self.client_stats().len(); let client_stat_count = self.client_stats().len();
for i in client_stat_count..*sender_id as usize { for i in client_stat_count..(*sender_id + 1) as usize {
self.client_stats_mut().push(ClientStats { self.client_stats_mut().push(ClientStats {
id: client_stat_count + i, id: client_stat_count + i,
corpus_size: 0, corpus_size: 0,