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:
parent
0a4e5fcdca
commit
121dd6c63a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user