Mercurial > hg > openttd
changeset 15143:70512d4ebfab draft
(svn r19772) -Fix [FS#3818]: the break-on-log-message feature could trigger an assert (Zuu)
author | yexo <yexo@openttd.org> |
---|---|
date | Sun, 09 May 2010 15:17:09 +0000 |
parents | ebf48af94ec0 |
children | 64afadbe614d |
files | src/ai/ai_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -1014,7 +1014,6 @@ 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 @@ /* Highlight row that matched */ this->highlight_row = log->pos; } + + _current_company = old_company; } }