Skip to content

Commit

Permalink
MP Staging: fixed weirdness caused by accidentally removing the wrong…
Browse files Browse the repository at this point in the history
… node (fixes #5648)
  • Loading branch information
Vultraz committed Oct 26, 2021
1 parent c7c5d67 commit eeebd2e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/gui/dialogs/multiplayer/mp_staging.cpp
Expand Up @@ -426,11 +426,9 @@ void mp_staging::on_team_select(ng::side_engine_ptr side, menu_button& team_menu

// Last, remove the old team node if it's now empty
if(old_team_node->empty()) {
// Only sibling should be the decor line, and it should be last
auto decor = old_team_node->siblings().back();

// Decor node will be immediately after team node. Remove this first!
tree.remove_node(old_team_node->get_node_below());
tree.remove_node(old_team_node);
tree.remove_node(decor.get());

team_tree_map_[old_team] = nullptr;
}
Expand Down

0 comments on commit eeebd2e

Please sign in to comment.