diff --git a/client/windows/CTradeWindow.cpp b/client/windows/CTradeWindow.cpp index 4b0bf9ccd..d5a728dcb 100644 --- a/client/windows/CTradeWindow.cpp +++ b/client/windows/CTradeWindow.cpp @@ -137,7 +137,23 @@ std::vector *CTradeWindow::getItemsIds(bool Left) { std::vector *ids = nullptr; - if(!Left) + if(Left) + { + switch(itemsType[1]) + { + case CREATURE: + ids = new std::vector; + for(int i = 0; i < 7; i++) + { + if(const CCreature *c = hero->getCreature(SlotID(i))) + ids->push_back(c->getId()); + else + ids->push_back(-1); + } + break; + } + } + else { switch(itemsType[0]) {