Browse Source

Merge pull request #794 from Faless/ws/4.0_fix_list

[4.0] [WebSocket] Fix peers handling in multiplayer example.
Fabio Alessandrelli 2 years ago
parent
commit
0cfbbec3f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      networking/websocket_multiplayer/script/game.gd

+ 1 - 1
networking/websocket_multiplayer/script/game.gd

@@ -64,7 +64,7 @@ func do_action(action):
 	var pos = _players.find(id)
 	if pos == -1:
 		return
-	_players.erase(pos)
+	_players.remove_at(pos)
 	_list.remove_item(pos)
 	if _turn > pos:
 		_turn -= 1