Skip to content

Commit

Permalink
Fix removing connected peer during disconnection
Browse files Browse the repository at this point in the history
(cherry picked from commit bd8380d)
  • Loading branch information
mhilbrunner authored and akien-mga committed Mar 11, 2024
1 parent 49c95e7 commit 3e908bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/multiplayer/scene_multiplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3e908bf

Please sign in to comment.