From 088d236fe01789464a69675d276b382763a65987 Mon Sep 17 00:00:00 2001 From: Jens Pitkanen Date: Fri, 7 Aug 2020 05:42:12 +0300 Subject: [PATCH] Fix RemotePlayer npe --- Assets/Scripts/Player/RemotePlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Player/RemotePlayer.cs b/Assets/Scripts/Player/RemotePlayer.cs index 1e32547..4475541 100644 --- a/Assets/Scripts/Player/RemotePlayer.cs +++ b/Assets/Scripts/Player/RemotePlayer.cs @@ -26,7 +26,7 @@ namespace NeonTea.Quakeball.Player { } private void Update() { - if (Time.time - LastUpdateTime >= 1f / Player.UpdateFrequency) { + if (Time.time - LastUpdateTime >= 1f / Player.UpdateFrequency && QueuedPckt != null) { ProcessPacket(ref QueuedPckt); } }