Explorar o código

reverse getTotalArmyLoss()-change

Due to a recent fix in army-loss calculations this method should now work correctly the way it was.
Xilmi hai 1 ano
pai
achega
f0f40660c4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      AI/Nullkiller/Pathfinding/AINodeStorage.cpp

+ 1 - 1
AI/Nullkiller/Pathfinding/AINodeStorage.cpp

@@ -1557,7 +1557,7 @@ bool AIPath::containsHero(const CGHeroInstance * hero) const
 
 uint64_t AIPath::getTotalArmyLoss() const
 {
-	return armyLoss > targetObjectArmyLoss ? armyLoss : targetObjectArmyLoss;
+	return armyLoss + targetObjectArmyLoss;
 }
 
 std::string AIPath::toString() const