summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index db1e098..f7f0286 100644
--- a/server.js
+++ b/server.js
@@ -1269,7 +1269,7 @@ function assign_random_roles(game, players) {
list.splice(k, 1);
return r;
}
- let roles = ROLES[game.title_id];
+ let roles = ROLES[game.title_id].slice();
for (let p of players) {
let old_role = p.role;
p.role = pick_random_item(roles);