Changeset 22 for cpp


Ignore:
Timestamp:
06/25/09 20:30:32 (16 years ago)
Author:
mwajcht
Message:

Fixed bug which caused segfaults in crossOver() method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/f8-to-f1/geno_f8.cpp

    r11 r22  
    10871087        int counter = 0;
    10881088        for (map<string, Production*>::iterator it = shuffledProductions.begin();
    1089                  it != shuffledProductions.end() || counter < productionCount; it++) {
     1089                 it != shuffledProductions.end() && counter < productionCount; it++) {
    10901090                //if selected production's name exist in the first parent
    10911091                if (newLsystem->productions.find(it->first) != newLsystem->productions.end()) {
Note: See TracChangeset for help on using the changeset viewer.