diff options
author | yexo <yexo@openttd.org> | 2012-01-15 13:06:11 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2012-01-15 13:06:11 +0000 |
commit | 8e68a442b95ce0f1f4be82fe689049ad40b96086 (patch) | |
tree | 5d2e792a2dd95ec3213c16232b9d3e4554da3ab5 /src | |
parent | 5535261e1312feb8fdcd065c9e5758367a07efcc (diff) | |
download | openttd-8e68a442b95ce0f1f4be82fe689049ad40b96086.tar.xz |
(svn r23803) -Fix [FS#4969]: newgrf textstack was not properly used when storing parameters for the error message window
Diffstat (limited to 'src')
-rw-r--r-- | src/error_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/error_gui.cpp b/src/error_gui.cpp index afbf3ee43..4d81f753f 100644 --- a/src/error_gui.cpp +++ b/src/error_gui.cpp @@ -119,8 +119,10 @@ public: { this->position.x = x; this->position.y = y; + if (textref_stack_size > 0) StartTextRefStackUsage(textref_stack_size, textref_stack); CopyOutDParam(this->decode_params, this->strings, detailed_msg == INVALID_STRING_ID ? summary_msg : detailed_msg, lengthof(this->decode_params)); if (textref_stack_size > 0) { + StopTextRefStackUsage(); MemCpyT(this->textref_stack, textref_stack, textref_stack_size); } |