mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r17681) -Fix [FS#3248] (r17668): crash when the caption of the query window used parameters
This commit is contained in:
parent
6cd143ea7b
commit
9c6157c578
@ -1461,6 +1461,7 @@ struct QueryWindow : public Window {
|
|||||||
{
|
{
|
||||||
switch (widget) {
|
switch (widget) {
|
||||||
case QUERY_WIDGET_CAPTION:
|
case QUERY_WIDGET_CAPTION:
|
||||||
|
CopyInDParam(1, this->params, lengthof(this->params));
|
||||||
SetDParam(0, this->caption);
|
SetDParam(0, this->caption);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user