From 24b6bd0f679f3cc5ff07bb5eb5ee787c20d3a5e8 Mon Sep 17 00:00:00 2001 From: Vincent Glize Date: Tue, 1 May 2018 19:38:37 +0200 Subject: Fix invisible chat error messages (#7289) --- src/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index 4dfb46a12..f5a542050 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2761,8 +2761,8 @@ void Game::updateChat(f32 dtime, const v2u32 &screensize) while (!chat_log_error_buf.empty()) { std::wstring error_message = utf8_to_wide(chat_log_error_buf.get()); if (!g_settings->getBool("disable_escape_sequences")) { - error_message = L"\x1b(c@red)"; - error_message.append(error_message).append(L"\x1b(c@white)"); + error_message.insert(0, L"\x1b(c@red)"); + error_message.append(L"\x1b(c@white)"); } chat_backend->addMessage(L"", error_message); } -- cgit v1.2.3