diff options
Diffstat (limited to '')
-rw-r--r-- | src/Render.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Render.cpp b/src/Render.cpp index 128c877..d583205 100644 --- a/src/Render.cpp +++ b/src/Render.cpp @@ -713,7 +713,7 @@ void Render::InitEvents() { listener.RegisterHandler("ChatMessageReceived", [this](const Event& eventData) { auto data = eventData.get<std::tuple<Chat, unsigned char>>(); - std::string msg = "(" + std::to_string((int)std::get<1>(data)) + ") " + std::get<0>(data).text; + std::string msg = "(" + std::to_string((int)std::get<1>(data)) + ") " + (std::get<0>(data).ToPlainText()); chatMessages.push_back(msg); }); |