diff options
| -rw-r--r-- | src/port/Game.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/port/Game.cpp b/src/port/Game.cpp index 1c6d49af9..9804fe324 100644 --- a/src/port/Game.cpp +++ b/src/port/Game.cpp @@ -1070,5 +1070,9 @@ extern "C" CustomEngineDestroy(); // GameEngine::Instance->ProcessFrame(push_frame); GameEngine::Instance->Destroy(); - return 0; + // Everything user-visible (config, saves) is persisted by Destroy(). Skip the + // remaining static destructors: their order is unspecified and some log after + // spdlog's own statics are gone, crashing on quit (same class as issue #689). + // Mirrors the _Exit precedent on the extraction error paths. + _Exit(0); } |
