Miner: filter invalid algos

This commit is contained in:
cohcho 2020-09-25 17:25:23 +00:00
parent 7b38af703e
commit 189cc78d44
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ public:
for (int i = 0; i < Algorithm::MAX; ++i) {
const Algorithm algo(static_cast<Algorithm::Id>(i));
if (isEnabled(algo)) {
if (algo.isValid() && isEnabled(algo)) {
algorithms.push_back(algo);
}
}