From 46fe5111cb099c4df5d1494f05c1b5e482e895de Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 9 Jun 2011 20:06:14 +0300 Subject: Allow select item with any color in code where colors not supported. --- src/gui/shopwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/shopwindow.cpp b/src/gui/shopwindow.cpp index 46a3351c5..7578cbf7b 100644 --- a/src/gui/shopwindow.cpp +++ b/src/gui/shopwindow.cpp @@ -216,7 +216,7 @@ void ShopWindow::action(const gcn::ActionEvent &event) return; //+++ need support for colors - Item *item = inv->findItem(mSelectedItem, 1); + Item *item = inv->findItem(mSelectedItem, 0); if (item) { if (event.getId() == "add buy") @@ -515,7 +515,7 @@ void ShopWindow::giveList(const std::string &nick, int mode) if (mode == SELL) { //+++ need support for colors - Item *item2 = inv->findItem(item->getId(), 1); + Item *item2 = inv->findItem(item->getId(), 0); if (item2) { int amount = item->getQuantity(); @@ -612,7 +612,7 @@ void ShopWindow::showList(const std::string &nick, std::string data) if (sellDialog) { //+++ need support for colors - Item *item = inv->findItem(id, 1); + Item *item = inv->findItem(id, 0); if (item) { if (item->getQuantity() < amount) @@ -685,7 +685,7 @@ void ShopWindow::processRequest(std::string nick, std::string data, int mode) if (mode == BUY) { //+++ need support for colors - Item *item2 = inv->findItem(mTradeItem->getId(), 1); + Item *item2 = inv->findItem(mTradeItem->getId(), 0); if (!item2 || item2->getQuantity() < amount || !findShopItem(mTradeItem, SELL)) { -- cgit v1.2.3-60-g2f50