mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 11:32:51 -05:00
Merge pull request #88826 from mhilbrunner/net-fix-has-erase
Networking scene multiplayer: Fix removing connected peer during disconnection
This commit is contained in:
commit
924e579f96
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ void SceneMultiplayer::disconnect_peer(int p_id) {
|
|||
if (pending_peers.has(p_id)) {
|
||||
pending_peers.erase(p_id);
|
||||
} else if (connected_peers.has(p_id)) {
|
||||
connected_peers.has(p_id);
|
||||
connected_peers.erase(p_id);
|
||||
}
|
||||
multiplayer_peer->disconnect_peer(p_id);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue