1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed CID 1366333

This commit is contained in:
AlexVinS 2016-11-26 21:06:34 +03:00
parent 0a4e5fcdca
commit 121dd6c63a

View File

@ -1715,6 +1715,10 @@ ESpellCastProblem::ESpellCastProblem CBattleInfoCallback::battleCanCastThisSpell
}
const PlayerColor player = caster->getOwner();
const ui8 side = playerToSide(player);
if((si8)side < 0)
return ESpellCastProblem::INVALID;
if(!battleDoWeKnowAbout(side))
return ESpellCastProblem::INVALID;