mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
fixed regression
This commit is contained in:
parent
b840cf3650
commit
4df7de36c1
@ -51,6 +51,8 @@ CAltarCreatures::CAltarCreatures(const IMarket * market, const CGHeroInstance *
|
||||
assert(leftTradePanel);
|
||||
leftTradePanel->moveBy(Point(45, 110));
|
||||
leftTradePanel->updateSlotsCallback = std::bind(&CCreaturesSelling::updateSubtitle, this);
|
||||
for(const auto & slot : leftTradePanel->slots)
|
||||
slot->clickPressedCallback = [this](const std::shared_ptr<CTradeableItem> & heroSlot) {CAltarCreatures::onSlotClickPressed(heroSlot, hLeft);};
|
||||
|
||||
// Altar creatures panel
|
||||
rightTradePanel = std::make_shared<CreaturesPanel>([this](const std::shared_ptr<CTradeableItem> & altarSlot)
|
||||
|
@ -90,10 +90,7 @@ CCreaturesSelling::CCreaturesSelling()
|
||||
if(const auto & creature = hero->getCreature(slotId))
|
||||
slots.emplace_back(std::make_tuple(creature->getId(), slotId, hero->getStackCount(slotId)));
|
||||
}
|
||||
leftTradePanel = std::make_shared<CreaturesPanel>([this](const std::shared_ptr<CTradeableItem> & altarSlot)
|
||||
{
|
||||
CTradeBase::onSlotClickPressed(altarSlot, hLeft);
|
||||
}, slots);
|
||||
leftTradePanel = std::make_shared<CreaturesPanel>(nullptr, slots);
|
||||
}
|
||||
|
||||
bool CCreaturesSelling::slotDeletingCheck(const std::shared_ptr<CTradeableItem> & slot)
|
||||
|
Loading…
x
Reference in New Issue
Block a user