Przeglądaj źródła

reverse getTotalArmyLoss()-change

Due to a recent fix in army-loss calculations this method should now work correctly the way it was.
Xilmi 1 rok temu
rodzic
commit
f0f40660c4
1 zmienionych plików z 1 dodań i 1 usunięć
  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