diff options
Diffstat (limited to 'src/jcgp/backend/population')
-rw-r--r-- | src/jcgp/backend/population/Node.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jcgp/backend/population/Node.java b/src/jcgp/backend/population/Node.java index b716ff8..1ac5b10 100644 --- a/src/jcgp/backend/population/Node.java +++ b/src/jcgp/backend/population/Node.java @@ -36,6 +36,9 @@ public class Node extends Gene implements MutableElement, Connection { connections[index] = newConnection; chromosome.recomputeActiveNodes(); } + } else if (newConnection instanceof Input) { + connections[index] = newConnection; + chromosome.recomputeActiveNodes(); } } |