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:
parent
f6b9015324
commit
fbebbf39f3
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user