Browse Source

Fix wrong variable name in code example

Just fixing a small typo in the code example.
phas0r 8 years ago
parent
commit
40f0c1de54
1 changed files with 1 additions and 1 deletions
  1. 1 1
      learning/features/networking/high_level_multiplayer.rst

+ 1 - 1
learning/features/networking/high_level_multiplayer.rst

@@ -171,7 +171,7 @@ Let's get back to the lobby. Imagine that each player that connects to the serve
             rpc_id(id, "register_player", 1, my_info)
             # Send the info of existing players
             for peer_id in player_info:
-                rpc_id(id, "register_player", peer_id, players[peer_id])
+                rpc_id(id, "register_player", peer_id, player_info[peer_id])
 
         # Call function to update lobby UI here