diff --git a/doc/Guides/GameObjects/SpawnPlayerCustom.md b/doc/Guides/GameObjects/SpawnPlayerCustom.md index e29e859d5..df6eaa15d 100644 --- a/doc/Guides/GameObjects/SpawnPlayerCustom.md +++ b/doc/Guides/GameObjects/SpawnPlayerCustom.md @@ -81,7 +81,7 @@ public class MMONetworkManager : NetworkManager player.race = message.race; // call this to use this gameobject as the primary controller - NetworkServer.AddPlayerForConnection(conn, player); + NetworkServer.AddPlayerForConnection(conn, gameobject); } } ```