I can avoid the problem by doing the following change. I used trunk 8508.
=== modified file 'src/wui/game_main_menu_save_game.cc' --- src/wui/game_main_menu_save_game.cc 2017-11-05 19:59:33 +0000 +++ src/wui/game_main_menu_save_game.cc 2017-11-28 20:50:38 +0000 @@ -132,8 +132,8 @@ ok_.set_enabled(load_or_save_.table().selections().size() == 1); load_or_save_.delete_button()->set_enabled(load_or_save_.has_selection()); if (load_or_save_.has_selection()) { - const SavegameData& gamedata = *load_or_save_.entry_selected(); - filename_editbox_.set_text(FileSystem::filename_without_ext(gamedata.filename.c_str())); + std::unique_ptr<SavegameData> gamedata = load_or_save_.entry_selected(); + filename_editbox_.set_text(FileSystem::filename_without_ext(gamedata->filename.c_str())); } }
I can avoid the problem by doing the following change. I used trunk 8508.
=== modified file 'src/wui/ game_main_ menu_save_ game.cc' game_main_ menu_save_ game.cc 2017-11-05 19:59:33 +0000 game_main_ menu_save_ game.cc 2017-11-28 20:50:38 +0000
ok_.set_ enabled( load_or_ save_.table( ).selections( ).size( ) == 1);
load_or_ save_.delete_ button( )->set_ enabled( load_or_ save_.has_ selection( )); save_.has_ selection( )) { save_.entry_ selected( ); editbox_ .set_text( FileSystem: :filename_ without_ ext(gamedata. filename. c_str() )); ptr<SavegameDat a> gamedata = load_or_ save_.entry_ selected( ); editbox_ .set_text( FileSystem: :filename_ without_ ext(gamedata- >filename. c_str() ));
--- src/wui/
+++ src/wui/
@@ -132,8 +132,8 @@
if (load_or_
- const SavegameData& gamedata = *load_or_
- filename_
+ std::unique_
+ filename_
}
}