summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-19 21:41:55 +0100
committerTor Andersson <tor@ccxvii.net>2025-03-19 21:42:20 +0100
commit7279ce75262ca21ff067f33573dfc8bfa6dd40b6 (patch)
treee481a6514cc9f857e1acef21b59bb1e281796db2
parentac7722d18a78afd5d60ec47909ccf919e1fb59a1 (diff)
downloadfuzzer-master.tar.gz
Support multi-active states in fuzzer.HEADmaster
-rwxr-xr-xrtt-module.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rtt-module.js b/rtt-module.js
index c10f25d..37a9ecc 100755
--- a/rtt-module.js
+++ b/rtt-module.js
@@ -81,6 +81,10 @@ module.exports.fuzz = function(fuzzerInputData) {
// If multiple players can act, we'll pick a random player to go first.
ctx.active = data.pickValue(roles)
}
+ if (Array.isArray(ctx.active)) {
+ // If multiple players can act, we'll pick a random player to go first.
+ ctx.active = data.pickValue(ctx.active)
+ }
const state_freeze = !NO_IMMUTABLE_VIEWSTATE ? JSON.stringify(ctx.state) : {}