diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index 7b526b1de..808409f75 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -1130,10 +1130,10 @@ static bool VerifyCanSpawn(GameObject obj) /// This is the same as calling NetworkIdentity.AssignClientAuthority on the spawned object. /// /// The object to spawn. - /// The player object to set Client Authority to. - public static void Spawn(GameObject obj, GameObject player) + /// The player object to set Client Authority to. + public static void Spawn(GameObject obj, GameObject ownerPlayer) { - NetworkIdentity identity = player.GetComponent(); + NetworkIdentity identity = ownerPlayer.GetComponent(); if (identity == null) { Debug.LogError("Player object has no NetworkIdentity");