瀏覽代碼

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;