Changeset 821 for cpp/frams/genetics/fL/fL_oper.cpp
- Timestamp:
- 10/10/18 01:13:05 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fL/fL_oper.cpp
r803 r821 64 64 } 65 65 66 if (builder.countSticksInSequence( builder.genotype) == 0)66 if (builder.countSticksInSequence(&builder.genotype) == 0) 67 67 { 68 68 return GENOPER_OPFAIL; … … 142 142 SString det; 143 143 NeuroClass *cls = getRandomNeuroClass(); 144 //we do not check if this class145 144 det = cls->getName(); 146 145 Geno_fH::mutateNeuronProperties(det); … … 418 417 int ruleid = 0; 419 418 std::list<fL_Word *> *list = selectRandomSequence(creature, numpars, ruleid); 420 if (ruleid == -1 && creature->countSticksInSequence( (*list)) == 1)419 if (ruleid == -1 && creature->countSticksInSequence(list) == 1) 421 420 { 422 421 if (list->size() > 1) … … 540 539 } 541 540 int chgtype = roulette(chgoperations, FL_CHG_COUNT); 542 if (creature->countSticksInSequence( (*list)) == 1 && tmp == -1) // if sequence is axiom541 if (creature->countSticksInSequence(list) == 1 && tmp == -1) // if sequence is axiom 543 542 { 544 543 fL_Word *worddef = randomWordDefinition(creature, roulette(addtypes, FL_ADD_COUNT - 1));
Note: See TracChangeset
for help on using the changeset viewer.