diff --git a/src/elo.rs b/src/elo.rs index 5eb89d5..7f2b509 100644 --- a/src/elo.rs +++ b/src/elo.rs @@ -173,7 +173,7 @@ impl PlayerArena { // print the leaderboard every 5 steps if received_num % 5 == 0 { - term.clear_last_lines(num) + term.clear_last_lines(self.players.len()) .expect("unable to clear prev lines"); let formatted_self = format!("{}", self); term.write_str(&formatted_self)