mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fix display of creatures to sell in Freelancer Guild
This commit is contained in:
parent
0cf490e2c3
commit
344d8891e4
@ -137,7 +137,23 @@ std::vector<int> *CTradeWindow::getItemsIds(bool Left)
|
||||
{
|
||||
std::vector<int> *ids = nullptr;
|
||||
|
||||
if(!Left)
|
||||
if(Left)
|
||||
{
|
||||
switch(itemsType[1])
|
||||
{
|
||||
case CREATURE:
|
||||
ids = new std::vector<int>;
|
||||
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])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user