diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-07 21:01:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-07 21:38:22 +0300 |
commit | a9732d3ad6115ad7d590e819631dfbd764d13d3e (patch) | |
tree | c62984bf527305f275a521e227d785df769c1351 /src/gui/shopwindow.cpp | |
parent | b43854b65e0c8bdbc37db2a0b6e2e86ebf11e7f7 (diff) | |
download | mv-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.gz mv-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.bz2 mv-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.xz mv-a9732d3ad6115ad7d590e819631dfbd764d13d3e.zip |
remove useless checks.
Diffstat (limited to 'src/gui/shopwindow.cpp')
-rw-r--r-- | src/gui/shopwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { |