diff --git a/src/init/storyInit.tw b/src/init/storyInit.tw index 5c8eed11347469e545bcd32aac8785c4a36e5c45..b94ac1052f3e40389bd60766b7d05dab1ecb4439 100644 --- a/src/init/storyInit.tw +++ b/src/init/storyInit.tw @@ -97,7 +97,7 @@ You should have received a copy of the GNU General Public License along with thi <</if>> <</for>> <<set $genePool = ngUpdateGenePool($genePool)>> - <<if ndef $missingTable>> + <<if ndef $missingTable || $showMissingSlaves == 0>> <<set $missingTable = {}>> <<else>> <<set $missingTable = ngUpdateMissingTable($missingTable)>> diff --git a/src/js/storyJS.tw b/src/js/storyJS.tw index a8c5102c7d551be4047b42ec8a42ab8cfd7dc7be..59995968ae1531a85678733c52d85d211f1b332e 100644 --- a/src/js/storyJS.tw +++ b/src/js/storyJS.tw @@ -812,7 +812,7 @@ window.ngUpdateMissingTable = function(missingTable) { var newTable = {}; (State.variables.slaves || []) - .forEach(s => ([s.pregSource,s.mother+1200000,s.father+1200000] + .forEach(s => ([s.pregSource+1200000,s.mother+1200000,s.father+1200000] .filter(i => (i in missingTable)) .forEach(i => { newTable[i-1200000] = missingTable[i];