From a28992aa38af85632bbbba71d4fc3ae202cb3db3 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sun, 24 Nov 2019 21:36:23 +0100 Subject: [PATCH] Default LocalClientId in ReplayConnection to -1 We do not have a local client in replays. This change prevents anything from accidentally using (sometimes there might be clients with ID 0 present). --- OpenRA.Game/Network/ReplayConnection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Network/ReplayConnection.cs b/OpenRA.Game/Network/ReplayConnection.cs index 1664b5c860..2f18c0c5d1 100644 --- a/OpenRA.Game/Network/ReplayConnection.cs +++ b/OpenRA.Game/Network/ReplayConnection.cs @@ -30,7 +30,7 @@ namespace OpenRA.Network int ordersFrame; Dictionary lastClientsFrame = new Dictionary(); - public int LocalClientId { get { return 0; } } + public int LocalClientId { get { return -1; } } public ConnectionState ConnectionState { get { return ConnectionState.Connected; } } public readonly int TickCount; public readonly int FinalGameTick;