summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-09 20:06:14 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-09 20:06:14 +0300
commit46fe5111cb099c4df5d1494f05c1b5e482e895de (patch)
treecad5863381859ab7616d3c4121868ecd1cd74405 /src/gui
parent3f62c34d3e19c2da8885facfedea2ed613779c53 (diff)
downloadmv-46fe5111cb099c4df5d1494f05c1b5e482e895de.tar.gz
mv-46fe5111cb099c4df5d1494f05c1b5e482e895de.tar.bz2
mv-46fe5111cb099c4df5d1494f05c1b5e482e895de.tar.xz
mv-46fe5111cb099c4df5d1494f05c1b5e482e895de.zip
Allow select item with any color in code where colors not supported.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/shopwindow.cpp8
1 files changed, 4 insertions, 4 deletions
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))
{