From fdbe06445323de1f82bcd6a61279c3ca46a4b826 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Sun, 3 May 2015 22:57:36 +0200 Subject: [PATCH] Fix Generation Limit Option. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index fc396cd..5ca1684 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -42,7 +42,7 @@ int main(int argc, char* argv[]) { new command::Option("--generation-size", "Generation size", [](int value)->void { generationSize = value; }), new command::Option("--crossover", "Crossover chance", [](float value)->void { crossoverChance = value; }), new command::Option("--mutation", "Mutation chance", [](float value)->void { mutationChance = value; }), - new command::Option("--generation-limit", "Limit of generations", [](float value)->void { mutationChance = value; }), + new command::Option("--generation-limit", "Limit of generations", [](float value)->void { generationLimit = value; }), }); _Fitness fitness(0.5, 2.5); -- 2.30.2