Skip to content

Commit

Permalink
MP Staging: fixed crash when selecting the --give-- controller option…
Browse files Browse the repository at this point in the history
… (bug #25091)

This option will be removed soon, so I'm not bothering with the special handling of this selection.
  • Loading branch information
Vultraz committed Sep 24, 2016
1 parent a02c568 commit b3ffcdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/dialogs/multiplayer/mp_staging.cpp
Expand Up @@ -282,11 +282,11 @@ void tmp_staging::on_controller_select(ng::side_engine& side, tgrid& row_grid)
tmenu_button& ai_selection = find_widget<tmenu_button>(&row_grid, "ai_controller", false);
tmenu_button& controller_selection = find_widget<tmenu_button>(&row_grid, "controller", false);

side.set_controller(side.controller_options()[controller_selection.get_value()].first);
if(side.controller_changed(controller_selection.get_value())) {
ai_selection.set_visible(side.controller() == ng::CNTR_COMPUTER ? twidget::tvisible::visible : twidget::tvisible::hidden);

ai_selection.set_visible(side.controller() == ng::CNTR_COMPUTER ? twidget::tvisible::visible : twidget::tvisible::hidden);

sync_changes();
sync_changes();
}
}

void tmp_staging::on_ai_select(ng::side_engine& side, tmenu_button& ai_menu)
Expand Down

0 comments on commit b3ffcdb

Please sign in to comment.