From 4f5749b2a45313708f800e609abff971ba7e47b4 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Mon, 27 Jul 2020 04:13:39 +0500 Subject: Improved ChatComponent support #13 --- src/Render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Render.cpp') 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::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); }); -- cgit v1.2.3