From ab8f4dd58e6b1bc61b20ce7c54c52831bf71546a Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 22 Feb 2020 13:30:49 +0200 Subject: [PATCH] Fix crashing on duplicate license --- DepotDownloader/ContentDownloader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 7fd9398f..fc46afa5 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -121,7 +121,7 @@ namespace DepotDownloader } else { - licenseQuery = steam3.Licenses.Select( x => x.PackageID ); + licenseQuery = steam3.Licenses.Select( x => x.PackageID ).Distinct(); } steam3.RequestPackageInfo( licenseQuery );