fix for count == 0

This commit is contained in:
kamyker 2020-05-20 22:32:51 +02:00
parent 7e4f1400c3
commit a3bd199b11

View File

@ -228,11 +228,12 @@ public float DownloadAmount
.GetPageAsync( 1 );
if ( !file.HasValue ) return null;
using ( file.Value )
{
if ( file.Value.ResultCount == 0 ) return null;
var item = file.Value.Entries.First();
file.Value.Dispose();
return item;
return file.Value.Entries.First();
}
}
internal static Item From( SteamUGCDetails_t details )