Browse Source

Fix crash when casting firewall-like spells after creature casting
#1910

AlexVinS 11 years ago
parent
commit
81fb2ae584
1 changed files with 1 additions and 0 deletions
  1. 1 0
      client/battle/CBattleInterface.cpp

+ 1 - 0
client/battle/CBattleInterface.cpp

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