1
0
Fork 0

Fix: initialize _switch_mode_time so crash-logs before first game have a realistic time (#12184)

pull/12246/head
Patric Stout 2024-02-27 02:41:59 +01:00 committed by Michael Lutz
parent d60bb9092a
commit 88683a6623
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[])
{
_switch_mode_time = std::chrono::steady_clock::now();
std::string musicdriver;
std::string sounddriver;
std::string videodriver;