Don't crash when a client that was dropped sends another order.

This commit is contained in:
Matthias Mailänder
2025-09-13 17:22:30 +02:00
committed by abcdefg30
parent b4c767ce48
commit 82f35bbe1c

View File

@@ -912,7 +912,7 @@ namespace OpenRA.Server
frame += OrderLatency;
DispatchFrameToClient(conn, conn.PlayerIndex, CreateAckFrame(frame, 1));
orderBuffer.AddOrderTimestamp(conn.PlayerIndex);
orderBuffer?.AddOrderTimestamp(conn.PlayerIndex);
// Track the last frame for each client so the disconnect handling can write
// an EndOfOrders marker with the correct frame number.