Fixed a bug with price checker

This commit is contained in:
Acrobot 2013-02-01 19:29:07 +01:00
parent d82727575c
commit 2ab26f57fd
1 changed files with 1 additions and 4 deletions

View File

@ -41,10 +41,7 @@ public class PriceChecker implements Listener {
event.setSignLine(PRICE_LINE, line);
double buyPrice = PriceUtil.getBuyPrice(line);
double sellPrice = PriceUtil.getSellPrice(line);
if (buyPrice == 0 && sellPrice == 0) {
if (!PriceUtil.hasBuyPrice(line) && !PriceUtil.hasSellPrice(line)) {
event.setOutcome(INVALID_PRICE);
}
}