Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
3.0.2.0g
Browse files Browse the repository at this point in the history
Fix critical error in 3.0.2.0g that was checking wrong vector for follower cost resulting in crash.
  • Loading branch information
nls0 authored Aug 12, 2018
1 parent 71ef50b commit 668c0df
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified CosmosQuest.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion cosmosData.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <bitset>

// Version number not used anywhere except in output to know immediately which version the user is running
const std::string VERSION = "3.0.2.0f";
const std::string VERSION = "3.0.2.0g";

const size_t GIGABYTE = ((size_t) (1) << 30);

Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ void solveInstance(Instance & instance, size_t firstDominance) {
}
}
if (j < heroMonsterArmies.size()) {
if (instance.bestSolution.monsterAmount <= 0 || heroBranchArmies[j].followerCost < instance.bestSolution.followerCost || instance.hasWorldBoss) {
if (instance.bestSolution.monsterAmount <= 0 || heroMonsterArmies[j].followerCost < instance.bestSolution.followerCost || instance.hasWorldBoss) {
heroBranchArmies.push_back(heroMonsterArmies[j++]);
}
else {
Expand Down

0 comments on commit 668c0df

Please sign in to comment.