diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-19 21:41:55 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-19 21:42:20 +0100 |
commit | 7279ce75262ca21ff067f33573dfc8bfa6dd40b6 (patch) | |
tree | e481a6514cc9f857e1acef21b59bb1e281796db2 | |
parent | ac7722d18a78afd5d60ec47909ccf919e1fb59a1 (diff) | |
download | fuzzer-master.tar.gz |
-rwxr-xr-x | rtt-module.js | 4 |
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) : {} |