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

* corrected r1174 - we can get the dead stack's info

This commit is contained in:
mateuszb 2009-08-31 10:56:41 +00:00
parent 866d39727e
commit 7586094a9b

View File

@ -1148,9 +1148,7 @@ void CPlayerInterface::battleStacksAttacked(std::set<BattleStackAttacked> & bsa)
{
if(i->isEffect() && i->effect != 12) //and not armageddon
{
const CStack *stack = cb->battleGetStackByID(i->stackAttacked);
// FIXME: Perhaps position should be kept for dead stacks?
const CStack *stack = cb->battleGetStackByID(i->stackAttacked, false);
if (stack != NULL)
battleInt->displayEffect(i->effect, stack->position);
}