From 4467b8424a3d0ba7cc387b487a89de2453b20db9 Mon Sep 17 00:00:00 2001 From: qndel Date: Wed, 18 Oct 2023 08:08:57 +0200 Subject: [PATCH] simplify message.from initialization (#6721) --- Source/plrmsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/plrmsg.cpp b/Source/plrmsg.cpp index 83c579719..d619c7330 100644 --- a/Source/plrmsg.cpp +++ b/Source/plrmsg.cpp @@ -73,7 +73,7 @@ void EventPlrMsg(std::string_view text, UiFlags style) message.style = style; message.time = SDL_GetTicks(); message.text = std::string(text); - message.from = std::string_view(message.text.data(), 0); + message.from = {}; message.lineHeight = GetLineHeight(message.text, GameFont12) + 3; AddMessageToChatLog(text); }