Avoid ASSERT from MB_Reset() on exit

This commit is contained in:
tomcw 2021-02-15 21:47:21 +00:00
parent 4e88163430
commit 2f4bbd2b8a

View File

@ -645,13 +645,10 @@ int APIENTRY WinMain(HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int)
{ {
g_cmdLine.bSetFullScreen = g_bRestartFullScreen; g_cmdLine.bSetFullScreen = g_bRestartFullScreen;
g_bRestartFullScreen = false; g_bRestartFullScreen = false;
}
MB_Reset(true); MB_Reset(true);
LogFileOutput("Main: MB_Reset()\n"); LogFileOutput("Main: MB_Reset()\n");
if (g_bRestart)
{
CMouseInterface* pMouseCard = GetCardMgr().GetMouseCard(); CMouseInterface* pMouseCard = GetCardMgr().GetMouseCard();
if (pMouseCard) if (pMouseCard)
{ {