# HG changeset patch # User Patric Stout # Date 2024-02-27 01:41:59 # Node ID f495cf1ac8a1e16d8ab3f00c1b49634e72775509 # Parent edf8503d8ec4ccd06f0ac2d93628c903a7684eeb Fix: initialize _switch_mode_time so crash-logs before first game have a realistic time (#12184) diff --git a/src/openttd.cpp b/src/openttd.cpp --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -517,6 +517,8 @@ static const OptionData _options[] = { */ int openttd_main(int argc, char *argv[]) { + _switch_mode_time = std::chrono::steady_clock::now(); + std::string musicdriver; std::string sounddriver; std::string videodriver;