Fix misc issue with steam gifts in trades

This commit is contained in:
JustArchi
2016-06-20 15:02:26 +02:00
parent 9e575584a8
commit 017c5eb7ef

View File

@@ -69,12 +69,7 @@ namespace ArchiSteamFarm {
}
uint appID;
if (uint.TryParse(hashName.Substring(0, index), out appID)) {
return appID;
}
Logging.LogNullError(nameof(appID));
return 0;
return uint.TryParse(hashName.Substring(0, index), out appID) ? appID : 0;
}
private static Steam.Item.EType GetItemType(string name) {