From 0b55f13306ead7f1bb72b1837f08391f359a7a30 Mon Sep 17 00:00:00 2001 From: James King Date: Fri, 8 Feb 2019 23:10:19 +0000 Subject: [PATCH] Update leaderboard counts when fetching entries --- Facepunch.Steamworks/Client/Leaderboard.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Facepunch.Steamworks/Client/Leaderboard.cs b/Facepunch.Steamworks/Client/Leaderboard.cs index 1457fc5..c338906 100644 --- a/Facepunch.Steamworks/Client/Leaderboard.cs +++ b/Facepunch.Steamworks/Client/Leaderboard.cs @@ -360,6 +360,9 @@ private void OnScores( LeaderboardScoresDownloaded_t result, bool error ) if ( client == null ) return; if ( error ) return; + // Entry count may have changed + TotalEntries = client.native.userstats.GetLeaderboardEntryCount(BoardId); + var list = new List(); ReadScores( result, list );