mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-19 15:51:50 +00:00
Fixed exception when not using -dir and build id unknown.
This commit is contained in:
1 parent
cfc95d3f57
commit
581ed16fa6
1 file changed
+2
-2
@@ -193,12 +193,12 @@ namespace DepotDownloader
|
||||
KeyValue branches = depots["branches"];
|
||||
KeyValue node = branches[branch];
|
||||
|
||||
if (node == null)
|
||||
if (node == KeyValue.Invalid)
|
||||
return 0;
|
||||
|
||||
KeyValue buildid = node["buildid"];
|
||||
|
||||
if (buildid == null)
|
||||
if (buildid == KeyValue.Invalid)
|
||||
return 0;
|
||||
|
||||
return uint.Parse(buildid.Value);
|
||||
|
||||
Reference in new issue
Block a user