1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-05-27 22:47:48 +02:00

Fix zero size stack summoned in case of basic resurrection.

This commit is contained in:
AlexVinS 2015-10-16 09:11:11 +03:00
parent f6b9015324
commit fbebbf39f3

View File

@ -5875,7 +5875,7 @@ CasualtiesAfterBattle::CasualtiesAfterBattle(const CArmedInstance * _army, Battl
if(army->slotEmpty(st->slot)) 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 //this stack was permanently summoned
const CreatureID summonedType = st->type->idNumber; const CreatureID summonedType = st->type->idNumber;