diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-04 22:08:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-04 22:08:04 +0300 |
commit | a865b10749df829ef46a14e244bc88ac52bc10b4 (patch) | |
tree | 244f283ab8ba6cfcc9683eafe51be7a9d7bbabbe /src/gui/tradewindow.cpp | |
parent | 9b3e13d4246930f0aa4dfb86e735466032d283dd (diff) | |
download | manaplus-a865b10749df829ef46a14e244bc88ac52bc10b4.tar.gz manaplus-a865b10749df829ef46a14e244bc88ac52bc10b4.tar.bz2 manaplus-a865b10749df829ef46a14e244bc88ac52bc10b4.tar.xz manaplus-a865b10749df829ef46a14e244bc88ac52bc10b4.zip |
Add colors support for drops panel.
Delete search item function without colors support.
Diffstat (limited to 'src/gui/tradewindow.cpp')
-rw-r--r-- | src/gui/tradewindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp index e7e74fdbb..e3fb323e6 100644 --- a/src/gui/tradewindow.cpp +++ b/src/gui/tradewindow.cpp @@ -430,7 +430,8 @@ void TradeWindow::initTrade(std::string nick) Inventory *inv = PlayerInfo::getInventory(); if (inv) { - Item *item = inv->findItem(mAutoAddItem->getId()); + Item *item = inv->findItem(mAutoAddItem->getId(), + mAutoAddItem->getColor()); if (item) tradeItem(item, mAutoAddItem->getQuantity()); } |