mirror of https://github.com/OpenTTD/OpenTTD
(svn r23803) -Fix [FS#4969]: newgrf textstack was not properly used when storing parameters for the error message window
parent
5535261e13
commit
8e68a442b9
|
@ -119,8 +119,10 @@ public:
|
||||||
{
|
{
|
||||||
this->position.x = x;
|
this->position.x = x;
|
||||||
this->position.y = y;
|
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));
|
CopyOutDParam(this->decode_params, this->strings, detailed_msg == INVALID_STRING_ID ? summary_msg : detailed_msg, lengthof(this->decode_params));
|
||||||
if (textref_stack_size > 0) {
|
if (textref_stack_size > 0) {
|
||||||
|
StopTextRefStackUsage();
|
||||||
MemCpyT(this->textref_stack, textref_stack, textref_stack_size);
|
MemCpyT(this->textref_stack, textref_stack, textref_stack_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue