mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
* corrected r1174 - we can get the dead stack's info
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user