Преглед изворни кода

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

AlexVinS пре 11 година
родитељ
комит
81fb2ae584
1 измењених фајлова са 1 додато и 0 уклоњено
  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;