The top players leaderboard count is off by 1. For instance, if I set it to 5, it will only show 4. This is because the for loop is starting at 1 and using a < operator. I could have changed the operator to <=, but it seemed cleaner to just increment i when it was needed instead of decrementing it in multiple places.
The top players leaderboard count is off by 1. For instance, if I set it to 5, it will only show 4. This is because the for loop is starting at 1 and using a
<
operator. I could have changed the operator to<=
, but it seemed cleaner to just incrementi
when it was needed instead of decrementing it in multiple places.