1
0
Fork 0

Fix: initialize _switch_mode_time so crash-logs before first game have a realistic time

pull/12184/head
Patric Stout 2024-02-26 22:51:14 +01:00
parent 149592e4dd
commit 0261d3a9c5
1 changed files with 2 additions and 0 deletions

View File

@ -517,6 +517,8 @@ static const OptionData _options[] = {
*/ */
int openttd_main(int argc, char *argv[]) int openttd_main(int argc, char *argv[])
{ {
_switch_mode_time = std::chrono::steady_clock::now();
std::string musicdriver; std::string musicdriver;
std::string sounddriver; std::string sounddriver;
std::string videodriver; std::string videodriver;