diff options
author | Jonathan G Rennison <j.g.rennison@gmail.com> | 2016-03-21 20:19:29 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-03-11 12:47:46 +0000 |
commit | 1a115e1cc8e6725fc3725e031767843a7d7f3ccb (patch) | |
tree | 0459f3350d6d5e3d6f4cb861dbe840cf51086c76 | |
parent | 6a897a2a9bd02df0533e9dbc0083a90c41ba816f (diff) | |
download | openttd-1a115e1cc8e6725fc3725e031767843a7d7f3ccb.tar.xz |
Change: Include _current_company in crashlog AI config line
_current_company is not currently logged anywhere in the crashlog.
_local_company is logged, despite being much less useful than
_current_company.
This change logs _current_company alongside _local_company.
-rw-r--r-- | src/crashlog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crashlog.cpp b/src/crashlog.cpp index ddb0c09cc..add5c5204 100644 --- a/src/crashlog.cpp +++ b/src/crashlog.cpp @@ -194,7 +194,7 @@ char *CrashLog::LogConfiguration(char *buffer, const char *last) const FontCache::Get(FS_MONO)->GetFontName() ); - buffer += seprintf(buffer, last, "AI Configuration (local: %i):\n", (int)_local_company); + buffer += seprintf(buffer, last, "AI Configuration (local: %i) (current: %i):\n", (int)_local_company, (int)_current_company); const Company *c; FOR_ALL_COMPANIES(c) { if (c->ai_info == NULL) { |