# HG changeset patch # User yexo # Date 2012-01-15 13:06:11 # Node ID 8896d47b8fa6dc182359e98d4075fe8d8d969d17 # Parent b815551e9a994aa6b92d1c81ac4b5a4cd57f0743 (svn r23803) -Fix [FS#4969]: newgrf textstack was not properly used when storing parameters for the error message window diff --git a/src/error_gui.cpp b/src/error_gui.cpp --- 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); }