(svn r19772) -Fix [FS#3818]: the break-on-log-message feature could trigger an assert (Zuu)

This commit is contained in:
yexo 2010-05-09 15:17:09 +00:00
parent a53fb48149
commit 96c1fd6173

View File

@ -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;
}
}