Add a Order.SyncHashOrderLength const

This commit is contained in:
abcdefg30
2020-10-11 20:22:37 +02:00
committed by abcdefg30
parent 8d5ed65feb
commit 1861174d38
7 changed files with 9 additions and 6 deletions

View File

@@ -784,7 +784,7 @@ namespace OpenRA.Server
{
recorder.ReceiveFrame(from, frame, data);
if (data.Length == 1 + 4 + 8 && data[0] == (byte)OrderType.SyncHash)
if (data.Length == Order.SyncHashOrderLength && data[0] == (byte)OrderType.SyncHash)
HandleSyncOrder(frame, data);
}
}