summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) : {}