From 94383cb44f4f71ade957b0ed887e765b6144ab13 Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Tue, 12 Mar 2019 04:39:20 -0400 Subject: [PATCH] Update ccbn.lua --- ccbn.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ccbn.lua b/ccbn.lua index 24df9f2..6d6a33f 100644 --- a/ccbn.lua +++ b/ccbn.lua @@ -1385,7 +1385,9 @@ local interpretNetMessage = function(msg) elseif msg.gameID == gameID then if isHost then if msg.command == "set_controls" then - players[msg.pID].control = msg.control + if players[msg.pID] then + players[msg.pID].control = msg.control + end end else if msg.command == "get_state" then