From 2d60dc513693c1b0fddc1cef976bb23618368ee6 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Fri, 13 Apr 2018 18:51:01 +0200 Subject: [PATCH] =?UTF-8?q?Renvoie=20toujours=20les=20variables=20manquant?= =?UTF-8?q?es=20des=20cons=C3=A9quences=20de=20variation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/engine/mecanisms.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/engine/mecanisms.js b/source/engine/mecanisms.js index 9aef8d437..56255c970 100644 --- a/source/engine/mecanisms.js +++ b/source/engine/mecanisms.js @@ -159,9 +159,7 @@ let devariate = (recurse, k, v) => { let leftMissing = choice ? {} : mergeAllMissing(pluck('condition', explanation)), - rightMissing = choice === false - ? {} - : mergeAllMissing(satisfied), + rightMissing = mergeAllMissing(satisfied), missingVariables = mergeMissing(bonus(leftMissing), rightMissing) return rewriteNode(node, nodeValue, explanation, missingVariables)