Skip to content

Commit d0e6217

Browse files
committed
Fix the "Example lobby implementation" section of the High-level multiplayer tutorial
Correct both the GDScript and C# code examples in the "Example lobby implementation" section of the Networking/High-level multiplayer tutorial.
1 parent 5639d1a commit d0e6217

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tutorials/networking/high_level_multiplayer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ have loaded the game scene.
415415

416416
func remove_multiplayer_peer():
417417
multiplayer.multiplayer_peer = null
418+
players.clear()
418419

419420

420421
# When the server decides to start the game from a UI scene,
@@ -550,6 +551,7 @@ have loaded the game scene.
550551
private void RemoveMultiplayerPeer()
551552
{
552553
Multiplayer.MultiplayerPeer = null;
554+
_players.Clear();
553555
}
554556

555557
// When the server decides to start the game from a UI scene,

0 commit comments

Comments
 (0)