From b3a8e4e8782e0247c73601c44982564771aa00fa Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Wed, 27 Aug 2014 12:49:39 +0200 Subject: [PATCH] Fix bad lock logic. --- scenarios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenarios.js b/scenarios.js index 2b24e6f..ce7d382 100644 --- a/scenarios.js +++ b/scenarios.js @@ -223,7 +223,7 @@ function generate (flags, events, nop) { function canStillHappen (event) { return issubset(event.requires || [], flags) && !(event.unique && contains.call(chosen, event)) - && !intersects(event.lock || [], locks); + && !(event.lock && intersects(event.lock || [], locks)); } for (i = 0; i < events; ++i) { -- 2.30.2