1
0
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:
AlexVinS 2014-11-14 04:12:50 +03:00
parent 7a429fc38b
commit 81fb2ae584

View File

@ -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;