Skip to content

Commit d8fecf7

Browse files
authored
Merge pull request #10481 from mateuseap/fix/high_level_multiplayer
Fix the "Example lobby implementation" section of the High-level multiplayer tutorial
2 parents 6f2ea9d + d0e6217 commit d8fecf7

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)