Skip to content

Commit

Permalink
Fixed an issue with recommended games section
Browse files Browse the repository at this point in the history
When adding a new game, a DivideByZeroException would be thrown, and an empty list returned. It no longer happens.
  • Loading branch information
Leo-Peyronnet committed Jul 7, 2023
1 parent 7138c53 commit 5d5747a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gavilya/Classes/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ public static List<GameInfo> GetRecommandedGames()

for (int i = 0; i < Games.Count; i++)
{
gameScores.Add(i, Games[i].LastTimePlayed / Games[i].TotalTimePlayed);
gameScores.Add(i, Games[i].LastTimePlayed / (Games[i].TotalTimePlayed + 1));
}

var sort = Settings.ShowMoreUnplayedGamesRecommanded.Value
Expand Down

0 comments on commit 5d5747a

Please sign in to comment.