diff --git a/logic/Server/RpcServices.cs b/logic/Server/RpcServices.cs index 5ada9445..5976e25b 100755 --- a/logic/Server/RpcServices.cs +++ b/logic/Server/RpcServices.cs @@ -76,14 +76,15 @@ public override async Task AddPlayer(PlayerMsg request, IServerStreamWriter= 0; i--) + var info = currentGameInfo.Clone(); + for (int i = info.ObjMessage.Count - 1; i >= 0; i--) { - if (currentGameInfo.ObjMessage[i].NewsMessage != null) + if (info.ObjMessage[i].NewsMessage != null) { - currentGameInfo.ObjMessage.RemoveAt(i); + info.ObjMessage.RemoveAt(i); } } - await responseStream.WriteAsync(currentGameInfo); + await responseStream.WriteAsync(info); GameServerLogging.logger.ConsoleLog("Send!", false); } }