Skip to content

Commit

Permalink
simplify message.from initialization (#6721)
Browse files Browse the repository at this point in the history
  • Loading branch information
qndel authored Oct 18, 2023
1 parent 9123f01 commit 4467b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/plrmsg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4467b84

Please sign in to comment.