mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r19772) -Fix [FS#3818]: the break-on-log-message feature could trigger an assert (Zuu)
This commit is contained in:
parent
a53fb48149
commit
96c1fd6173
@ -1014,7 +1014,6 @@ struct AIDebugWindow : public QueryStringBaseWindow {
|
||||
CompanyID old_company = _current_company;
|
||||
_current_company = ai_debug_company;
|
||||
AILog::LogData *log = (AILog::LogData *)AIObject::GetLogPointer();
|
||||
_current_company = old_company;
|
||||
|
||||
if (log != NULL && case_sensitive_break_check?
|
||||
strstr(log->lines[log->pos], this->edit_str_buf) != 0 :
|
||||
@ -1032,6 +1031,8 @@ struct AIDebugWindow : public QueryStringBaseWindow {
|
||||
/* Highlight row that matched */
|
||||
this->highlight_row = log->pos;
|
||||
}
|
||||
|
||||
_current_company = old_company;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user