mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-15 11:46:56 +02:00
fix
This commit is contained in:
parent
891eb5771a
commit
fc1938c341
@ -1416,9 +1416,15 @@ CBattleInterface::PossibleActions CBattleInterface::getCasterAction(const CSpell
|
|||||||
void CBattleInterface::setHeroAnimation(ui8 side, int phase)
|
void CBattleInterface::setHeroAnimation(ui8 side, int phase)
|
||||||
{
|
{
|
||||||
if(side == BattleSide::ATTACKER)
|
if(side == BattleSide::ATTACKER)
|
||||||
attackingHero->setPhase(phase);
|
{
|
||||||
|
if(attackingHero)
|
||||||
|
attackingHero->setPhase(phase);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
defendingHero->setPhase(phase);
|
{
|
||||||
|
if(defendingHero)
|
||||||
|
defendingHero->setPhase(phase);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CBattleInterface::castThisSpell(SpellID spellID)
|
void CBattleInterface::castThisSpell(SpellID spellID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user