Skip to content

Commit

Permalink
catch exceptions thrown from multiplayer_configure dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 8, 2014
1 parent 312df65 commit b9b3a3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/multiplayer_configure.cpp
Expand Up @@ -215,6 +215,7 @@ configure::configure(game_display& disp, const config &cfg, chat& c, config& gam

configure::~configure()
{
try {
// Only save the settings if the dialog was 'accepted'
if(get_result() != CREATE) {
DBG_MP << "destructing multiplayer configure dialog - aborted game creation" << std::endl;
Expand Down Expand Up @@ -245,6 +246,7 @@ configure::~configure()
preferences::set_village_support(parameters_.village_support);
preferences::set_xp_modifier(parameters_.xp_modifier);
}
} catch (...) {}
}

const mp_game_settings& configure::get_parameters()
Expand Down

0 comments on commit b9b3a3b

Please sign in to comment.