mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-23 22:40:07 +02:00
Fix zero size stack summoned in case of basic resurrection.
This commit is contained in:
parent
f6b9015324
commit
fbebbf39f3
@ -5875,7 +5875,7 @@ CasualtiesAfterBattle::CasualtiesAfterBattle(const CArmedInstance * _army, Battl
|
||||
|
||||
if(army->slotEmpty(st->slot))
|
||||
{
|
||||
if(st->slot == SlotID::SUMMONED_SLOT_PLACEHOLDER && !vstd::contains(st->state, EBattleStackState::SUMMONED) && st->alive())
|
||||
if(st->slot == SlotID::SUMMONED_SLOT_PLACEHOLDER && !vstd::contains(st->state, EBattleStackState::SUMMONED) && st->alive() && st->count > 0)
|
||||
{
|
||||
//this stack was permanently summoned
|
||||
const CreatureID summonedType = st->type->idNumber;
|
||||
|
Loading…
x
Reference in New Issue
Block a user