mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 22:03:26 +00:00
catch exceptions thrown from multiplayer_wait dtor
This commit is contained in:
parent
b9b3a3bdc7
commit
5c5eb5bc43
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user