NetworkClient.Connect: use 0 as second parameter because the third one was actually the client id. The second one was the host id, which will likely be removed soon because it's left over from LLAPI.

This commit is contained in:
vis2k 2019-02-26 16:43:55 +01:00
parent 9a143dac5b
commit 3d945666a8

View File

@ -63,7 +63,7 @@ public void Connect(string ip)
NetworkManager.singleton.transport.ClientConnect(ip);
// setup all the handlers
connection = new NetworkConnection(serverIp, clientId, 0);
connection = new NetworkConnection(serverIp, 0, 0);
connection.SetHandlers(handlers);
}