|
did_mutate = it->MutateTraits(a_Parameters.NeuronTraits, a_RNG); |
Should be did_mutate |= true
As it stands this code will set did_mutate to the result for the last neuron, rather than the OR value of all the nueron mutation results, which is presumably what's desired. This error is repeated throughout the remainder of the code.