Explorar o código

Update Nullkiller.cpp

Fixed incorrect trace-message at end of turn.
Xilmi hai 1 ano
pai
achega
099341e143
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      AI/Nullkiller/Engine/Nullkiller.cpp

+ 2 - 0
AI/Nullkiller/Engine/Nullkiller.cpp

@@ -511,6 +511,8 @@ void Nullkiller::makeTurn()
 		{
 			logAi->trace("Nothing was done this turn. Ending turn.");
 #if NKAI_TRACE_LEVEL >= 1
+			totalHeroStrength = 0;
+			totalTownLevel = 0;
 			for (auto heroInfo : cb->getHeroesInfo())
 			{
 				totalHeroStrength += heroInfo->getTotalStrength();