1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Tweak StacksHealedOrResurrected

* flags should be bool
This commit is contained in:
AlexVinS 2015-09-16 10:20:08 +03:00
parent a1e06aa217
commit 2c3a607497
2 changed files with 2 additions and 2 deletions

View File

@ -1323,7 +1323,7 @@ struct StacksHealedOrResurrected : public CPackForClient //3013
{
ui32 stackID;
ui32 healedHP;
ui8 lowLevelResurrection; //in case this stack is resurrected by this heal, it will be marked as SUMMONED //TODO: replace with separate counter
bool lowLevelResurrection; //in case this stack is resurrected by this heal, it will be marked as SUMMONED //TODO: replace with separate counter
template <typename Handler> void serialize(Handler &h, const int version)
{
h & stackID & healedHP & lowLevelResurrection;

View File

@ -3795,7 +3795,7 @@ bool CGameHandler::makeBattleAction( BattleAction &ba )
StacksHealedOrResurrected::HealInfo hi;
hi.healedHP = healed;
hi.lowLevelResurrection = 0;
hi.lowLevelResurrection = false;
hi.stackID = destStack->ID;
shr.healedStacks.push_back(hi);