From 03c696b15d4c4b914c2fa0dc18ef2b01d5c9c87e Mon Sep 17 00:00:00 2001 From: kopareigns <kopareigns@gmail.com> Date: Sun, 20 Jan 2019 11:16:28 -0500 Subject: [PATCH] Fix --- src/uncategorized/BackwardsCompatibility.tw | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw index 4d20f9ed370..45f743f30d3 100644 --- a/src/uncategorized/BackwardsCompatibility.tw +++ b/src/uncategorized/BackwardsCompatibility.tw @@ -3411,6 +3411,8 @@ Setting missing slave variables: <<for _bci = 0; _bci < $genePool.length; _bci++>> <<set _Slave = $genePool[_bci]>> + <<PMODinit _Slave>> + <<if $genePool.map(function(s) { return s.ID; }).count(_Slave.ID) > 1>> /* first check for duplicate IDs, keep the first entry and delete the others */ <<for _bci2 = _bci + 1; _bci2 < $genePool.length; _bci2++>> <<if $genePool[_bci2].ID == _Slave.ID>> -- GitLab