changeset 13174:cd71f89cd87f draft

(svn r17681) -Fix [FS#3248] (r17668): crash when the caption of the query window used parameters
author rubidium <rubidium@openttd.org>
date Fri, 02 Oct 2009 15:06:14 +0000
parents 30cd150d3dd3
children 3f4cc2986131
files src/misc_gui.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1461,6 +1461,7 @@
 	{
 		switch (widget) {
 			case QUERY_WIDGET_CAPTION:
+				CopyInDParam(1, this->params, lengthof(this->params));
 				SetDParam(0, this->caption);
 				break;