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,14 +273,17 @@ bool EmberGenome(EmberOptions& opt)
else else
return false; return false;
if (doCross1 && ParseEmberFile(parser, opt.Cross1(), embers2)) if (doCross1)
{ {
if (opt.SubBatchSize() != DEFAULT_SBS) if (ParseEmberFile(parser, opt.Cross1(), embers2))
for (i = 0; i < embers2.size(); i++) {
embers2[i].m_SubBatchSize = opt.SubBatchSize(); if (opt.SubBatchSize() != DEFAULT_SBS)
for (i = 0; i < embers2.size(); i++)
embers2[i].m_SubBatchSize = opt.SubBatchSize();
}
else
return false;
} }
else
return false;
if (opt.CloneAll() != "") if (opt.CloneAll() != "")
{ {