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

This commit is contained in:
Patric Stout 2024-02-27 02:41:59 +01:00 committed by Kuhnovic
parent b64ad26068
commit 30716c476f
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;