diff --git a/src/drivers/sdl/gui.cpp b/src/drivers/sdl/gui.cpp index 3ca7ad45..6e3098c7 100644 --- a/src/drivers/sdl/gui.cpp +++ b/src/drivers/sdl/gui.cpp @@ -1504,7 +1504,10 @@ void closeGame() { GdkColor bg = {0, 0, 0, 0}; gtk_widget_modify_bg(evbox, GTK_STATE_NORMAL, &bg); - CloseGame(); + CloseGame(); + // LoadGame() checks for an IP and if it finds one begins a network session + // clear the NetworkIP field so this doesn't happen unintentionally + g_config->setOption("SDL.NetworkIP", ""); } void loadGame () diff --git a/src/drivers/sdl/sdl.cpp b/src/drivers/sdl/sdl.cpp index ba26475c..88ef1077 100644 --- a/src/drivers/sdl/sdl.cpp +++ b/src/drivers/sdl/sdl.cpp @@ -239,9 +239,6 @@ CloseGame() if(filename.size()) { FCEUI_EndWaveRecord(); } - // LoadGame() checks for an IP and if it finds one begins a network session - // clear the NetworkIP field so this doesn't happen unintentionally - g_config->setOption("SDL.NetworkIP", ""); InputUserActiveFix(); return(1);