diff --git a/Assets/Mirror/Components/PredictedRigidbody/PredictedRigidbody.cs b/Assets/Mirror/Components/PredictedRigidbody/PredictedRigidbody.cs index 7d24d1678..c39782611 100644 --- a/Assets/Mirror/Components/PredictedRigidbody/PredictedRigidbody.cs +++ b/Assets/Mirror/Components/PredictedRigidbody/PredictedRigidbody.cs @@ -247,7 +247,7 @@ protected virtual void CreateGhosts() // cache components to avoid GetComponent calls at runtime physicsCopyRigidbody = physicsCopy.GetComponent(); physicsCopyCollider = physicsCopy.GetComponent(); - if (physicsGhostRigidbody == null) throw new Exception("SeparatePhysics: couldn't find final Rigidbody."); + if (physicsCopyRigidbody == null) throw new Exception("SeparatePhysics: couldn't find final Rigidbody."); if (physicsCopyCollider == null) throw new Exception("SeparatePhysics: couldn't find final Collider."); }