1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00
This commit is contained in:
DjWarmonger
2012-06-20 13:03:05 +00:00
parent 7a6133a824
commit a15ad329b4

View File

@ -3013,6 +3013,7 @@ void CBattleInterface::handleHex(BattleHex myNumber, int eventType)
case RANDOM_GENIE_SPELL: //we assume that teleport / sacrifice will never be avaliable as random spell case RANDOM_GENIE_SPELL: //we assume that teleport / sacrifice will never be avaliable as random spell
sp = NULL; sp = NULL;
consoleMsg = boost::str(boost::format(CGI->generaltexth->allTexts[301]) % shere->getName()); //Cast a spell on % consoleMsg = boost::str(boost::format(CGI->generaltexth->allTexts[301]) % shere->getName()); //Cast a spell on %
creatureCasting = true;
isCastingPossible = true; isCastingPossible = true;
break; break;
case TELEPORT: case TELEPORT:
@ -3136,6 +3137,7 @@ void CBattleInterface::handleHex(BattleHex myNumber, int eventType)
} }
else else
{ {
assert (sp);
switch (sp->id) switch (sp->id)
{ {
case Spells::SACRIFICE: case Spells::SACRIFICE: