catch exceptions thrown from multiplayer_wait dtor

This commit is contained in:
Chris Beck 2014-06-07 23:58:56 -04:00
parent b9b3a3bdc7
commit 5c5eb5bc43

View File

@ -199,6 +199,7 @@ wait::wait(game_display& disp, const config& cfg, game_state& state,
wait::~wait()
{
try {
if (get_result() == QUIT) {
state_ = game_state();
state_.classification().campaign_type = game_classification::MULTIPLAYER;
@ -206,6 +207,7 @@ wait::~wait()
resources::config_manager->
load_game_config_for_game(state_.classification());
}
} catch (...) {}
}
void wait::process_event()