mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +03:00
Last parameter for DownloadLeaderboardEntries is index inclusive
This commit is contained in:
parent
9101b82450
commit
b522f5affa
@ -66,7 +66,7 @@ public async Task<LeaderboardEntry[]> GetScoresAsync( int count, int offset = 1
|
||||
{
|
||||
if ( offset <= 0 ) throw new System.ArgumentException( "Should be 1+", nameof( offset ) );
|
||||
|
||||
var r = await SteamUserStats.Internal.DownloadLeaderboardEntries( Id, LeaderboardDataRequest.Global, offset, offset + count );
|
||||
var r = await SteamUserStats.Internal.DownloadLeaderboardEntries( Id, LeaderboardDataRequest.Global, offset, offset + count - 1 );
|
||||
if ( !r.HasValue )
|
||||
return null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user