Check max size of grid
This commit is contained in:
parent
1b029f4b96
commit
e49bdd715e
1 changed files with 2 additions and 0 deletions
|
@ -131,7 +131,9 @@ impl LeaderBoard {
|
||||||
write_log!("create entries");
|
write_log!("create entries");
|
||||||
|
|
||||||
// check if entry count in grid is the same as the gathered 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()
|
let force_update = if !self.leaderboard_entries.is_empty()
|
||||||
|
&& self.leaderboard_entries.len() <= self.leaderboard_grid.dimensions().1
|
||||||
&& self
|
&& self
|
||||||
.leaderboard_grid
|
.leaderboard_grid
|
||||||
.child_at(0, self.leaderboard_entries.len() - 1)?
|
.child_at(0, self.leaderboard_entries.len() - 1)?
|
||||||
|
|
Loading…
Reference in a new issue