Ver Fonte

Tweak StacksHealedOrResurrected
* flags should be bool

AlexVinS há 10 anos atrás
pai
commit
2c3a607497
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      lib/NetPacks.h
  2. 1 1
      server/CGameHandler.cpp

+ 1 - 1
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 <typename Handler> void serialize(Handler &h, const int version)
 		{
 			h & stackID & healedHP & lowLevelResurrection;

+ 1 - 1
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);