From 2c3a607497b7a08614b02c5fb8393648489543f8 Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Wed, 16 Sep 2015 10:20:08 +0300 Subject: [PATCH] Tweak StacksHealedOrResurrected * flags should be bool --- lib/NetPacks.h | 2 +- server/CGameHandler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NetPacks.h b/lib/NetPacks.h index ca7afc7d5..4e94e312e 100644 --- a/lib/NetPacks.h +++ b/lib/NetPacks.h @@ -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 void serialize(Handler &h, const int version) { h & stackID & healedHP & lowLevelResurrection; diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 082a49a41..63fc7df81 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -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);