mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-11 22:28:03 +03:00
Fixed inventory continually updating
This commit is contained in:
parent
c0df4af9da
commit
ae8906794f
@ -100,11 +100,10 @@ namespace Facepunch.Steamworks
|
||||
|
||||
internal void DestroyResult()
|
||||
{
|
||||
if ( updateRequest != -1 )
|
||||
{
|
||||
client.native.inventory.DestroyResult( updateRequest );
|
||||
updateRequest = -1;
|
||||
}
|
||||
if ( updateRequest == -1 ) return;
|
||||
|
||||
client.native.inventory.DestroyResult( updateRequest );
|
||||
updateRequest = -1;
|
||||
}
|
||||
|
||||
|
||||
@ -126,6 +125,8 @@ namespace Facepunch.Steamworks
|
||||
if ( status == Valve.Steamworks.EResult.k_EResultOK || status == Valve.Steamworks.EResult.k_EResultExpired )
|
||||
{
|
||||
RetrieveInventory();
|
||||
DestroyResult();
|
||||
return;
|
||||
}
|
||||
|
||||
// Some other error
|
||||
|
Loading…
x
Reference in New Issue
Block a user