summaryrefslogtreecommitdiffstats
path: root/src/Render.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2020-07-27 01:13:39 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2020-07-28 00:36:42 +0200
commit4f5749b2a45313708f800e609abff971ba7e47b4 (patch)
tree56d53ca33dd54e492abfd56f093bda1f531bd4b4 /src/Render.cpp
parentMerge pull request #43 from LaG1924/ftr/dimensions_support (diff)
downloadAltCraft-4f5749b2a45313708f800e609abff971ba7e47b4.tar
AltCraft-4f5749b2a45313708f800e609abff971ba7e47b4.tar.gz
AltCraft-4f5749b2a45313708f800e609abff971ba7e47b4.tar.bz2
AltCraft-4f5749b2a45313708f800e609abff971ba7e47b4.tar.lz
AltCraft-4f5749b2a45313708f800e609abff971ba7e47b4.tar.xz
AltCraft-4f5749b2a45313708f800e609abff971ba7e47b4.tar.zst
AltCraft-4f5749b2a45313708f800e609abff971ba7e47b4.zip
Diffstat (limited to '')
-rw-r--r--src/Render.cpp2
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);
});