diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-08 21:39:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-08 21:39:21 +0300 |
commit | f39df8b1de96c6d6e78d90f2f058318aa7fd998b (patch) | |
tree | 1d3a5ba6fa16584f2a3cdb64cc18f720f20e8f09 /src/gui/windows/shopwindow.cpp | |
parent | 00cc703c86c6c0118cb2c1d976886710aa61d91d (diff) | |
download | plus-f39df8b1de96c6d6e78d90f2f058318aa7fd998b.tar.gz plus-f39df8b1de96c6d6e78d90f2f058318aa7fd998b.tar.bz2 plus-f39df8b1de96c6d6e78d90f2f058318aa7fd998b.tar.xz plus-f39df8b1de96c6d6e78d90f2f058318aa7fd998b.zip |
Add some missing item colors.
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r-- | src/gui/windows/shopwindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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) |