Browse Source

* Fixed crash on casting spells.
* version bump

Michał W. Urbańczyk 13 years ago
parent
commit
d961ec0507
2 changed files with 2 additions and 2 deletions
  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/, ...).