1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

* Fixed crash on casting spells.

* version bump
This commit is contained in:
Michał W. Urbańczyk
2012-09-09 23:51:20 +00:00
parent 529394a4e7
commit d961ec0507
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -12,7 +12,7 @@
namespace GameConstants 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/, ...). * DATA_DIR contains the game data (Data/, MP3/, ...).