And make 0 not acceptable

This commit is contained in:
JustArchi
2016-07-30 21:03:23 +02:00
parent 198c51f3da
commit 1f58c92b5e

View File

@@ -456,7 +456,7 @@ namespace ArchiSteamFarm {
}
byte cardsRemaining;
if (!byte.TryParse(progressMatch.Value, out cardsRemaining)) {
if (!byte.TryParse(progressMatch.Value, out cardsRemaining) || (cardsRemaining == 0)) {
Logging.LogNullError(nameof(cardsRemaining), Bot.BotName);
return;
}