Delete windows before switching to GM_MENU mode in LoadIntroGame
See: https://github.com/OpenTTD/OpenTTD/issues/7635
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user