summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx22 <glx22@users.noreply.github.com>2019-10-04 23:42:17 +0200
committerGitHub <noreply@github.com>2019-10-04 23:42:17 +0200
commit4154cf00f451a4cf05b5184e6eeb677e0d002c89 (patch)
tree3410f0a544249728a86ea1854c6873cbbc889b51 /src
parent875419e4ee5c5955c8802ab48bb108c1014e546e (diff)
downloadopenttd-4154cf00f451a4cf05b5184e6eeb677e0d002c89.tar.xz
Fix 71a3e8346: decode_params need to be copied too (#7760)
Diffstat (limited to 'src')
-rw-r--r--src/error_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/error_gui.cpp b/src/error_gui.cpp
index 501ebb82f..fb986edda 100644
--- a/src/error_gui.cpp
+++ b/src/error_gui.cpp
@@ -77,6 +77,7 @@ ErrorMessageData::ErrorMessageData(const ErrorMessageData &data) :
summary_msg(data.summary_msg), detailed_msg(data.detailed_msg), position(data.position), face(data.face)
{
memcpy(this->textref_stack, data.textref_stack, sizeof(this->textref_stack));
+ memcpy(this->decode_params, data.decode_params, sizeof(this->decode_params));
for (size_t i = 0; i < lengthof(this->strings); i++) {
if (this->strings[i] != nullptr) {
this->strings[i] = stredup(this->strings[i]);