From 9f55fd01a7af1d4e672fab76216faf5162c773af Mon Sep 17 00:00:00 2001 From: Procyonae <45432782+Procyonae@users.noreply.github.com> Date: Tue, 14 May 2024 18:33:22 +0100 Subject: [PATCH] Fix new line in crash log when SDL message box cannot be created (#70767) (#73777) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jianxiang Wang (王健翔) --- src/crash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crash.cpp b/src/crash.cpp index 0a8445484fb4e..a3114d3ad95ef 100644 --- a/src/crash.cpp +++ b/src/crash.cpp @@ -77,7 +77,7 @@ extern "C" { #if defined(TILES) if( SDL_ShowSimpleMessageBox( SDL_MESSAGEBOX_ERROR, "Error", log_text.str().c_str(), nullptr ) != 0 ) { - log_text << "Error creating SDL message box: " << SDL_GetError() << '\n'; + log_text << "\nError creating SDL message box: " << SDL_GetError(); } #endif #endif