DepotDownloader: fixed crash on some Steam3 apps when not supplying depot id.

pull/8/head
psychonic 14 years ago
parent fe867a4fcf
commit 5602f4f79e

@ -368,8 +368,7 @@ namespace DepotDownloader
foreach (var child in depots.Children) foreach (var child in depots.Children)
{ {
int id = -1; int id = -1;
int.TryParse(child.Name, out id); if (int.TryParse(child.Name, out id) && child.Children.Count > 0 && (depotId == -1 || id == depotId))
if (child.Children.Count > 0 && (depotId == -1 || id == depotId))
{ {
depotIDs.Add(int.Parse(child.Name)); depotIDs.Add(int.Parse(child.Name));
} }

Loading…
Cancel
Save