summaryrefslogtreecommitdiff
path: root/src/gui/windows/tradewindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-21 04:44:53 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-21 20:37:02 +0300
commit862e8f821789014b6167f37976b80694d6d310e3 (patch)
tree7c4d77a370f4da3d84a649b0d10e4d0a05725e6a /src/gui/windows/tradewindow.cpp
parent62fa051ace7097e78134d46505070a70c08e128f (diff)
downloadmanaverse-862e8f821789014b6167f37976b80694d6d310e3.tar.gz
manaverse-862e8f821789014b6167f37976b80694d6d310e3.tar.bz2
manaverse-862e8f821789014b6167f37976b80694d6d310e3.tar.xz
manaverse-862e8f821789014b6167f37976b80694d6d310e3.zip
Add item options into item and get it from server.
Diffstat (limited to 'src/gui/windows/tradewindow.cpp')
-rw-r--r--src/gui/windows/tradewindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp
index 995db35eb..bab8da9c2 100644
--- a/src/gui/windows/tradewindow.cpp
+++ b/src/gui/windows/tradewindow.cpp
@@ -52,6 +52,7 @@
#include "resources/db/unitsdb.h"
#include "resources/item/item.h"
+#include "resources/item/itemoptionslist.h"
#include "net/serverfeatures.h"
#include "net/tradehandler.h"
@@ -222,6 +223,7 @@ void TradeWindow::addItem(const int id,
void TradeWindow::addItem2(const int id,
const ItemTypeT type,
const int *const cards,
+ const ItemOptionsList *const options,
const int sz,
const bool own,
const int quantity,
@@ -244,7 +246,10 @@ void TradeWindow::addItem2(const int id,
equipment,
Equipped_false);
if (slot >= 0)
+ {
inv->setCards(slot, cards, sz);
+ inv->setOptions(slot, options);
+ }
}
void TradeWindow::changeQuantity(const int index, const bool own,