Browse Source

simplify message.from initialization (#6721)

pull/6742/head
qndel 3 years ago committed by GitHub
parent
commit
4467b8424a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/plrmsg.cpp

2
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);
}

Loading…
Cancel
Save