From a9732d3ad6115ad7d590e819631dfbd764d13d3e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Apr 2013 21:01:35 +0300 Subject: remove useless checks. --- src/gui/shopwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/shopwindow.cpp') diff --git a/src/gui/shopwindow.cpp b/src/gui/shopwindow.cpp index 0119bc68b..0ed8065ae 100644 --- a/src/gui/shopwindow.cpp +++ b/src/gui/shopwindow.cpp @@ -817,7 +817,7 @@ bool ShopWindow::findShopItem(const ShopItem *const shopItem, const int mode) if (!item) continue; - if (item && item->getId() == shopItem->getId() + if (item->getId() == shopItem->getId() && item->getPrice() == shopItem->getPrice() && item->getQuantity() >= shopItem->getQuantity()) { -- cgit v1.2.3-60-g2f50