diff --git a/src/ui/mainui.cpp b/src/ui/mainui.cpp index ea2b8dfe..cdc57702 100644 --- a/src/ui/mainui.cpp +++ b/src/ui/mainui.cpp @@ -123,8 +123,11 @@ void CMainUserInterface::ShowLoadingScreen(bool show) } else { - m_screenLoading->DestroyInterface(); - m_currentScreen = nullptr; + if (m_currentScreen == m_screenLoading.get()) + { + m_screenLoading->DestroyInterface(); + m_currentScreen = nullptr; + } m_app->SetMouseMode(m_settings->GetSystemMouse() ? MOUSE_SYSTEM : MOUSE_ENGINE); } }