Fix syncreport crash caused by getting LocalClient index from ReplayConnection
This commit is contained in:
@@ -104,7 +104,10 @@ namespace OpenRA.Network
|
|||||||
|
|
||||||
internal void DumpSyncReport(int frame)
|
internal void DumpSyncReport(int frame)
|
||||||
{
|
{
|
||||||
var reportName = "syncreport-" + DateTime.UtcNow.ToString("yyyy-MM-ddTHHmmssZ", CultureInfo.InvariantCulture) + "-" + orderManager.LocalClient.Index + ".log";
|
var timestamp = DateTime.UtcNow.ToString("yyyy-MM-ddTHHmmssZ", CultureInfo.InvariantCulture);
|
||||||
|
|
||||||
|
var reportName = $"syncreport-{timestamp}-{orderManager.LocalClient?.Index}.log";
|
||||||
|
|
||||||
Log.AddChannel("sync", reportName);
|
Log.AddChannel("sync", reportName);
|
||||||
|
|
||||||
var recordedFrames = new List<int>();
|
var recordedFrames = new List<int>();
|
||||||
|
|||||||
Reference in New Issue
Block a user