mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Possible fix for https://bugs.vcmi.eu/view.php?id=2678
This commit is contained in:
parent
5d8e943787
commit
f370cdf1c7
@ -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));
|
||||
owner->myInt->cb->castSpell(h, SpellID::TOWN_PORTAL, dest->visitablePos());
|
||||
const CGTownInstance * dest = LOCPLINT->cb->getTown(ObjectInstanceID(townId));
|
||||
LOCPLINT->cb->castSpell(h, SpellID::TOWN_PORTAL, dest->visitablePos());
|
||||
};
|
||||
|
||||
if (availableTowns.empty())
|
||||
|
Loading…
x
Reference in New Issue
Block a user