Fix removing connected peer during disconnection

(cherry picked from commit bd8380db55)
This commit is contained in:
Max Hilbrunner 2024-02-25 18:44:02 +01:00 committed by Rémi Verschelde
parent 49c95e7bbb
commit 3e908bfef3
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ void SceneMultiplayer::disconnect_peer(int p_id) {
if (pending_peers.has(p_id)) { if (pending_peers.has(p_id)) {
pending_peers.erase(p_id); pending_peers.erase(p_id);
} else if (connected_peers.has(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); multiplayer_peer->disconnect_peer(p_id);
} }