mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fix crash when casting firewall-like spells after creature casting
#1910
This commit is contained in:
parent
7a429fc38b
commit
81fb2ae584
@ -1544,6 +1544,7 @@ void CBattleInterface::castThisSpell(int spellID)
|
||||
ba->side = defendingHeroInstance ? (curInt->playerID == defendingHeroInstance->tempOwner) : false;
|
||||
spellToCast = ba;
|
||||
spellDestSelectMode = true;
|
||||
creatureCasting = false;
|
||||
|
||||
//choosing possible tragets
|
||||
const CGHeroInstance * castingHero = (attackingHeroInstance->tempOwner == curInt->playerID) ? attackingHeroInstance : defendingHeroInstance;
|
||||
|
Loading…
Reference in New Issue
Block a user