From 48e08bdd053e2f4ebca4450c93b4e842a2a9d166 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 26 Feb 2019 09:02:37 +0100 Subject: [PATCH] no need for extra variable --- Assets/Mirror/Runtime/NetworkClient.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkClient.cs b/Assets/Mirror/Runtime/NetworkClient.cs index 1898035c2..d4b0c289f 100644 --- a/Assets/Mirror/Runtime/NetworkClient.cs +++ b/Assets/Mirror/Runtime/NetworkClient.cs @@ -55,8 +55,7 @@ public void Connect(string ip) if (LogFilter.Debug) { Debug.Log("Client Connect: " + ip); } - string hostnameOrIp = ip; - serverIp = hostnameOrIp; + serverIp = ip; connectState = ConnectState.Connecting; NetworkManager.singleton.transport.ClientConnect(ip);