diff --git a/src/common/platform/win32/i_main.cpp b/src/common/platform/win32/i_main.cpp index bbada0fb26..acdfd2eb5d 100644 --- a/src/common/platform/win32/i_main.cpp +++ b/src/common/platform/win32/i_main.cpp @@ -979,6 +979,8 @@ int DoMain (HINSTANCE hInstance) atexit (UnCOM); int ret = GameMain (); + CheckForRestart(); + DestroyCustomCursor(); if (ret == 1337) // special exit code for 'norun'. { diff --git a/src/d_main.cpp b/src/d_main.cpp index e29cca2db2..245922beb4 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -3716,10 +3716,6 @@ int GameMain() DeleteStartupScreen(); delete Args; Args = nullptr; -#ifdef _WIN32 - void CheckForRestart(); - CheckForRestart(); -#endif return ret; }