mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Fixed crash with Firewall / Forcefield cast when there is dead stack.
This commit is contained in:
parent
8249e15f0f
commit
4f75e47c47
@ -2925,7 +2925,7 @@ void CBattleInterface::handleHex(BattleHex myNumber, int eventType)
|
||||
auto tilesThatMustBeClear = sp->rangeInHexes(myNumber, hero->getSpellSchoolLevel(sp), side, &hexesOutsideBattlefield);
|
||||
BOOST_FOREACH(BattleHex hex, tilesThatMustBeClear)
|
||||
{
|
||||
if(curInt->cb->battleGetStackByPos(hex) || !!curInt->cb->battleGetObstacleOnPos(hex, false)
|
||||
if(curInt->cb->battleGetStackByPos(hex, false) || !!curInt->cb->battleGetObstacleOnPos(hex, false)
|
||||
|| !hex.isAvailable())
|
||||
{
|
||||
legalAction = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user