Ignore:
Timestamp:
03/13/14 00:36:07 (10 years ago)
Author:
sz
Message:

removed the confusing SList operator!()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/oper_fx.cpp

    r168 r170  
    182182        for (int i = 0; i < Neuro::getClassCount(); i++)
    183183                if (Neuro::getClass(i)->genactive) active += Neuro::getClass(i);
    184         if (!active == 0) return NULL; else return active(randomN(!active));
     184        if (active.size() == 0) return NULL; else return active(randomN(active.size()));
    185185}
    186186
Note: See TracChangeset for help on using the changeset viewer.