Delete windows before switching to GM_MENU mode in LoadIntroGame

See: https://github.com/OpenTTD/OpenTTD/issues/7635
This commit is contained in:
Jonathan G Rennison
2019-07-11 18:21:52 +01:00
parent 97221a67f2
commit 4cf60613df

View File

@@ -403,6 +403,9 @@ static void ShutdownGame()
*/
static void LoadIntroGame(bool load_newgrfs = true)
{
Window *v;
FOR_ALL_WINDOWS_FROM_FRONT(v) delete v;
_game_mode = GM_MENU;
if (load_newgrfs) ResetGRFConfig(false);