diff --git a/Assets/Mirror/Core/Prediction/Prediction.cs b/Assets/Mirror/Core/Prediction/Prediction.cs index 907573ff9..e1c20ca39 100644 --- a/Assets/Mirror/Core/Prediction/Prediction.cs +++ b/Assets/Mirror/Core/Prediction/Prediction.cs @@ -183,7 +183,7 @@ public static T CorrectHistory( // // not saving it would also result in objects flying towards // infinity when using sendInterval = 0. - stateHistory[entry.timestamp] = entry; + stateHistory[key] = entry; // debug draw the corrected state // Debug.DrawLine(last.position, entry.position, Color.cyan, lineTime);