diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index f62955d00..b1f886501 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -539,8 +539,7 @@ internal void OnServerConnectInternal(NetworkConnection conn, ConnectMessage con if (networkSceneName != "" && networkSceneName != offlineScene) { - SceneMessage msg = new SceneMessage(networkSceneName); - conn.Send(msg); + conn.Send(new SceneMessage(networkSceneName)); } OnServerConnect(conn);