1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00
This commit is contained in:
AlexVinS 2017-05-25 20:07:52 +03:00
parent 5d8e943787
commit f370cdf1c7

View File

@ -705,10 +705,10 @@ void CSpellWindow::SpellArea::clickLeft(tribool down, bool previousState)
} }
} }
auto castTownPortal = [this, h](int townId) auto castTownPortal = [h](int townId)
{ {
const CGTownInstance * dest = owner->myInt->cb->getTown(ObjectInstanceID(townId)); const CGTownInstance * dest = LOCPLINT->cb->getTown(ObjectInstanceID(townId));
owner->myInt->cb->castSpell(h, SpellID::TOWN_PORTAL, dest->visitablePos()); LOCPLINT->cb->castSpell(h, SpellID::TOWN_PORTAL, dest->visitablePos());
}; };
if (availableTowns.empty()) if (availableTowns.empty())