Don't prematurely terminate if doCross1 is not specified

This commit is contained in:
Simon Detheridge 2015-01-21 10:51:26 +00:00
parent 4059767dc4
commit cc2ce44140

View File

@ -273,7 +273,9 @@ bool EmberGenome(EmberOptions& opt)
else
return false;
if (doCross1 && ParseEmberFile(parser, opt.Cross1(), embers2))
if (doCross1)
{
if (ParseEmberFile(parser, opt.Cross1(), embers2))
{
if (opt.SubBatchSize() != DEFAULT_SBS)
for (i = 0; i < embers2.size(); i++)
@ -281,6 +283,7 @@ bool EmberGenome(EmberOptions& opt)
}
else
return false;
}
if (opt.CloneAll() != "")
{