From f39df8b1de96c6d6e78d90f2f058318aa7fd998b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Sep 2015 21:39:21 +0300 Subject: Add some missing item colors. --- src/gui/windows/shopwindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/gui/windows/shopwindow.cpp') diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp index c5014f902..645ae5314 100644 --- a/src/gui/windows/shopwindow.cpp +++ b/src/gui/windows/shopwindow.cpp @@ -347,9 +347,8 @@ void ShopWindow::action(const ActionEvent &event) ShopItem *const item = *it; if (!item) continue; - // +++ need add colors Item *const cartItem = inv->findItem(item->getId(), - ItemColor_one); + item->getColor()); if (!cartItem) continue; item->setInvIndex(cartItem->getInvIndex()); @@ -748,7 +747,6 @@ void ShopWindow::giveList(const std::string &nick, const int mode) if (mode == SELL) { - // +++ need support for colors const Item *const item2 = inv->findItem(item->getId(), ItemColor_zero); if (item2) -- cgit v1.2.3-60-g2f50