Try to make scope info logging more robust.
Add checks for validity of Vehicle ptrs in scope_dumper::VehicleInfo. In Unix mode, try to handle SIGSEGVs when dumping scope info.
This commit is contained in:
@@ -81,6 +81,13 @@ char *CrashLog::LogCompiler(char *buffer, const char *last) const
|
||||
return buffer;
|
||||
}
|
||||
|
||||
#ifdef USE_SCOPE_INFO
|
||||
/* virtual */ char *CrashLog::LogScopeInfo(char *buffer, const char *last) const
|
||||
{
|
||||
return buffer + WriteScopeLog(buffer, last);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Writes OpenTTD's version to the buffer.
|
||||
* @param buffer The begin where to write at.
|
||||
|
Reference in New Issue
Block a user