mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-26 21:41:19 +03:00
fix for count == 0
This commit is contained in:
parent
7e4f1400c3
commit
a3bd199b11
@ -228,11 +228,12 @@ namespace Steamworks.Ugc
|
|||||||
.GetPageAsync( 1 );
|
.GetPageAsync( 1 );
|
||||||
|
|
||||||
if ( !file.HasValue ) return null;
|
if ( !file.HasValue ) return null;
|
||||||
if ( file.Value.ResultCount == 0 ) return null;
|
using ( file.Value )
|
||||||
|
{
|
||||||
|
if ( file.Value.ResultCount == 0 ) return null;
|
||||||
|
|
||||||
var item = file.Value.Entries.First();
|
return file.Value.Entries.First();
|
||||||
file.Value.Dispose();
|
}
|
||||||
return item;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static Item From( SteamUGCDetails_t details )
|
internal static Item From( SteamUGCDetails_t details )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user