diff --git a/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs b/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs index cacf06cf8..a474f591a 100644 --- a/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs +++ b/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs @@ -355,7 +355,13 @@ void UpdateClient() // first, see if there's a snapshot at blendingEndTime already. // this would be super precise. - if (SnapshotInterpolation.TrySample(clientSnapshots, clientTimeline + blendingTime, out int from, out int to, out double t)) + // returns false if there isn't any yet. + if (SnapshotInterpolation.TrySample( + clientSnapshots, + clientTimeline + blendingTime, + out int from, + out int to, + out double t)) { // interpolate between from & to NTSnapshot fromSnapshot = clientSnapshots[from];