From 30716c476fc9ca8759ab845f75a3e185c922d164 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Tue, 27 Feb 2024 02:41:59 +0100 Subject: [PATCH] Fix: initialize _switch_mode_time so crash-logs before first game have a realistic time (#12184) --- src/openttd.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openttd.cpp b/src/openttd.cpp index 31db6b0d60..94c9b6e748 100644 --- 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;