1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Fized crash on attacking walls with Cyclop Kings.

This commit is contained in:
Michał W. Urbańczyk 2012-04-01 13:40:14 +00:00
parent 1eeebdee10
commit 7ccc78c757

View File

@ -140,7 +140,7 @@ CAttackAnimation::CAttackAnimation(CBattleInterface *_owner, const CStack *attac
{
assert(attackingStack && "attackingStack is NULL in CBattleAttack::CBattleAttack !\n");
if(attackingStack->getCreature()->idNumber != 145) //catapult is allowed to attack not-creature
if(!attackingStack->hasBonusOfType(Bonus::CATAPULT)) //catapult is allowed to attack not-creature
{
assert(attackedStack && "attackedStack is NULL in CBattleAttack::CBattleAttack !\n");
}