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 GitHub
parent 149592e4dd
commit e775ef2b70

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;