Fix crash when 25 players are exceeded #5

Merged
hodasemi merged 3 commits from dev into master 2023-01-20 04:30:48 +00:00
Showing only changes of commit 8c5accd92c - Show all commits

View file

@ -131,7 +131,9 @@ impl LeaderBoard {
write_log!("create entries");
// check if entry count in grid is the same as the gathered entries
// that means some joined or left the game
let force_update = if !self.leaderboard_entries.is_empty()
&& self.leaderboard_entries.len() <= self.leaderboard_grid.dimensions().1
&& self
.leaderboard_grid
.child_at(0, self.leaderboard_entries.len() - 1)?