diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2020-07-28 00:57:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 00:57:34 +0200 |
commit | c67da9e4eff2b99d095d5ff24de024b1ed115078 (patch) | |
tree | 56d53ca33dd54e492abfd56f093bda1f531bd4b4 /src/Render.cpp | |
parent | Merge pull request #43 from LaG1924/ftr/dimensions_support (diff) | |
parent | Improved ChatComponent support #13 (diff) | |
download | AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar.gz AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar.bz2 AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar.lz AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar.xz AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.tar.zst AltCraft-c67da9e4eff2b99d095d5ff24de024b1ed115078.zip |
Diffstat (limited to 'src/Render.cpp')
-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); }); |