From 4c3572dcbf3e133c9f3d0c7d295f412ff5b88763 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 29 Jun 2020 17:01:29 -0700 Subject: [PATCH] Fix bug when a player reclaims a previous player object by name Previously, we were forgetting to update the session ID map, leading to an experience where the player couldn't submit any words, etc. (Sorry, David!). --- game.js | 1 + 1 file changed, 1 insertion(+) diff --git a/game.js b/game.js index 55145bb..fa29068 100644 --- a/game.js +++ b/game.js @@ -184,6 +184,7 @@ class Game { this.broadcast_event("player-enter", existing.info_json()); } existing.add_connection(connection); + this.players_by_session[session.id] = existing; return existing; } -- 2.43.0