mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r23493) -Fix (r23476): clearing errors didn't clear the currently shown critical error
This commit is contained in:
parent
e0e5e51e2a
commit
f3b78bf076
@ -301,6 +301,7 @@ public:
|
||||
*/
|
||||
void ClearErrorMessages()
|
||||
{
|
||||
UnshowCriticalError();
|
||||
_errors.clear();
|
||||
}
|
||||
|
||||
@ -322,7 +323,7 @@ void ShowFirstError()
|
||||
void UnshowCriticalError()
|
||||
{
|
||||
ErrmsgWindow *w = (ErrmsgWindow*)FindWindowById(WC_ERRMSG, 0);
|
||||
if (w != NULL) {
|
||||
if (_window_system_initialized && w != NULL) {
|
||||
if (w->IsCritical()) _errors.push_front(*w);
|
||||
_window_system_initialized = false;
|
||||
delete w;
|
||||
|
Loading…
Reference in New Issue
Block a user