Fix bad lock logic.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 27 Aug 2014 10:49:39 +0000 (12:49 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 27 Aug 2014 10:49:39 +0000 (12:49 +0200)
scenarios.js

index 2b24e6f435bd8eaacf55c283df3a2e4cc5a8b7a9..ce7d3820d13b350191c72bdc6d1b95f8fc23e6e2 100644 (file)
@@ -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) {