Explorar o código

* Fixed crash on casting spells.
* version bump

Michał W. Urbańczyk %!s(int64=13) %!d(string=hai) anos
pai
achega
d961ec0507
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      lib/CBattleCallback.cpp
  2. 1 1
      lib/GameConstants.h

+ 1 - 1
lib/CBattleCallback.cpp

@@ -1593,7 +1593,7 @@ ESpellCastProblem::ESpellCastProblem CBattleInfoCallback::battleCanCastThisSpell
 	case CSpell::CREATURE_EXPERT_MASSIVE:
 		if(mode == ECastingMode::HERO_CASTING)
 		{
-			const CGHeroInstance * caster = battleGetFightingHero(player);
+			const CGHeroInstance * caster = battleGetFightingHero(side);
 			bool targetExists = false;
 			BOOST_FOREACH(const CStack * stack, battleAliveStacks())
 			{

+ 1 - 1
lib/GameConstants.h

@@ -12,7 +12,7 @@
 
 namespace GameConstants
 {
-	const std::string VCMI_VERSION = "VCMI 0.89b";
+	const std::string VCMI_VERSION = "VCMI 0.89c";
 
 	/* 
 	 * DATA_DIR contains the game data (Data/, MP3/, ...).