mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
Crashes realted to illegal access to enemy hero data should be fixed, including #1178.
This commit is contained in:
@ -645,7 +645,7 @@ void CSpellWindow::SpellArea::clickLeft(tribool down, bool previousState)
|
||||
if(vstd::contains(s->state, EBattleStackState::SUMMONED))
|
||||
{
|
||||
elemental = s->getCreature()->namePl;
|
||||
summoner = owner->myInt->cb->battleGetFightingHero(!s->attackerOwned)->name;
|
||||
summoner = owner->myInt->cb->battleGetHeroInfo(!s->attackerOwned).name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user