updated Workshop.onDownloadResult method to ensure that the item's app ID matches the client app id, as described in the DownloadItemResult_t Steamworks documentation

This commit is contained in:
Rich 2017-07-10 18:05:34 -04:00
parent bf21cb9df3
commit 3ecd7e4e4e

View File

@ -73,7 +73,7 @@ private void onItemInstalled( SteamNative.ItemInstalled_t obj, bool failed )
private void onDownloadResult( SteamNative.DownloadItemResult_t obj, bool failed ) private void onDownloadResult( SteamNative.DownloadItemResult_t obj, bool failed )
{ {
if ( OnFileDownloaded != null ) if ( OnFileDownloaded != null && obj.AppID == Client.Instance.AppId )
OnFileDownloaded( obj.PublishedFileId, (Callbacks.Result) obj.Result ); OnFileDownloaded( obj.PublishedFileId, (Callbacks.Result) obj.Result );
} }