This commit is contained in:
MihailRis 2025-01-22 08:38:19 +03:00
parent b2cda8070b
commit 6d1cacb512

View File

@ -35,7 +35,6 @@ int main(int argc, char** argv) {
} catch (const initialize_error& err) { } catch (const initialize_error& err) {
logger.error() << "could not to initialize engine\n" << err.what(); logger.error() << "could not to initialize engine\n" << err.what();
} }
Engine::terminate();
#if defined(NDEBUG) and defined(_WIN32) #if defined(NDEBUG) and defined(_WIN32)
catch (const std::exception& err) { catch (const std::exception& err) {
logger.error() << "uncaught exception: " << err.what(); logger.error() << "uncaught exception: " << err.what();
@ -43,5 +42,6 @@ int main(int argc, char** argv) {
throw; throw;
} }
#endif #endif
Engine::terminate();
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }