Fix crash when closing the live game window after loading a saved game

(cherry picked from commit b0922c2f0794f6b2f6c24c6e806c4d227d1679bd)
This commit is contained in:
Tom Stellard 2022-01-20 16:08:13 -08:00
parent 2100bc8dc5
commit f18841c40b
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ load_save_load_game(Bygfoot *bygfoot, const gchar* filename, gboolean create_mai
if(create_main_window)
{
window_create(WINDOW_MAIN);
window_create_with_userdata(WINDOW_MAIN, bygfoot);
on_button_back_to_main_clicked(NULL, NULL);
}
else if(window.main != NULL)