diff options
Diffstat (limited to 'src/error_gui.cpp')
-rw-r--r-- | src/error_gui.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/error_gui.cpp b/src/error_gui.cpp index 06c0c44e0..d23589683 100644 --- a/src/error_gui.cpp +++ b/src/error_gui.cpp @@ -399,10 +399,7 @@ void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel if (textref_stack_size > 0) StopTextRefStackUsage(); - switch (wl) { - case WL_WARNING: IConsolePrint(CC_WARNING, buf); break; - default: IConsoleError(buf); break; - } + IConsolePrint(wl == WL_WARNING ? CC_WARNING : CC_ERROR, buf); } bool no_timeout = wl == WL_CRITICAL; |