mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +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;
|
CompanyID old_company = _current_company;
|
||||||
_current_company = ai_debug_company;
|
_current_company = ai_debug_company;
|
||||||
AILog::LogData *log = (AILog::LogData *)AIObject::GetLogPointer();
|
AILog::LogData *log = (AILog::LogData *)AIObject::GetLogPointer();
|
||||||
_current_company = old_company;
|
|
||||||
|
|
||||||
if (log != NULL && case_sensitive_break_check?
|
if (log != NULL && case_sensitive_break_check?
|
||||||
strstr(log->lines[log->pos], this->edit_str_buf) != 0 :
|
strstr(log->lines[log->pos], this->edit_str_buf) != 0 :
|
||||||
@ -1032,6 +1031,8 @@ struct AIDebugWindow : public QueryStringBaseWindow {
|
|||||||
/* Highlight row that matched */
|
/* Highlight row that matched */
|
||||||
this->highlight_row = log->pos;
|
this->highlight_row = log->pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_current_company = old_company;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user