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:
parent
866d39727e
commit
7586094a9b
@ -1148,9 +1148,7 @@ void CPlayerInterface::battleStacksAttacked(std::set<BattleStackAttacked> & bsa)
|
|||||||
{
|
{
|
||||||
if(i->isEffect() && i->effect != 12) //and not armageddon
|
if(i->isEffect() && i->effect != 12) //and not armageddon
|
||||||
{
|
{
|
||||||
const CStack *stack = cb->battleGetStackByID(i->stackAttacked);
|
const CStack *stack = cb->battleGetStackByID(i->stackAttacked, false);
|
||||||
|
|
||||||
// FIXME: Perhaps position should be kept for dead stacks?
|
|
||||||
if (stack != NULL)
|
if (stack != NULL)
|
||||||
battleInt->displayEffect(i->effect, stack->position);
|
battleInt->displayEffect(i->effect, stack->position);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user