From 83200d4eb75d07d84f12fdd1168e891f04391624 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Thu, 28 May 2020 17:37:44 -0400 Subject: [PATCH] more --- .../backwardsCompatibility/backwardsCompatibility.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js index c7c4bc78877..f48faf2a5e7 100644 --- a/src/data/backwardsCompatibility/backwardsCompatibility.js +++ b/src/data/backwardsCompatibility/backwardsCompatibility.js @@ -1185,7 +1185,8 @@ App.Update.slaveVariables = function(node) { let Slave = V.slaves[bci]; if (typeof Slave !== "object") { - V.slaves.deleteAt(bci), bci--; + V.slaves.deleteAt(bci); + bci--; continue; } @@ -1276,7 +1277,8 @@ App.Update.genePoolRecords = function(node) { /* first check for duplicate IDs, keep the first entry and delete the others */ for (let bci2 = bci + 1; bci2 < V.genePool.length; bci2++) { if (V.genePool[bci2].ID === slave.ID) { - V.genePool.deleteAt(bci2), bci2--; + V.genePool.deleteAt(bci2); + bci2--; } } } @@ -1312,7 +1314,8 @@ App.Update.genePoolRecords = function(node) { } } if (dontDeleteMe === 0) { - V.genePool.deleteAt(bci), bci--; + V.genePool.deleteAt(bci); + bci--; continue; } if (typeof slave.origSkin === "undefined") { -- GitLab