summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-15 21:45:44 +0000
committertruelight <truelight@openttd.org>2004-12-15 21:45:44 +0000
commit88862fcdb6d960e5dab5072257c65dd73ce2dfd5 (patch)
tree7b81d265d51fddb1611d4ef902534baa7914ce03
parent2d5a938621fcecf689214fc90d9f2a43fc955057 (diff)
downloadopenttd-88862fcdb6d960e5dab5072257c65dd73ce2dfd5.tar.xz
(svn r1112) -Fix: _decode_parameters was increased to [20], but not all temp-dparams were
-rw-r--r--misc_gui.c2
-rw-r--r--widget.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc_gui.c b/misc_gui.c
index b805749e0..73e378197 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -372,7 +372,7 @@ void ShowBuildTreesScenToolbar()
AllocateWindowDescFront(&_build_trees_scen_desc, 0);
}
-static uint32 _errmsg_decode_params[10];
+static uint32 _errmsg_decode_params[20];
static StringID _errmsg_message_1, _errmsg_message_2;
static uint _errmsg_duration;
diff --git a/widget.c b/widget.c
index 1c47c5528..7ea268146 100644
--- a/widget.c
+++ b/widget.c
@@ -146,7 +146,7 @@ void DrawWindowWidgets(Window *w)
const Widget *wi;
DrawPixelInfo *dpi = _cur_dpi;
Rect r;
- uint32 dparam_backup[10];
+ uint32 dparam_backup[20];
uint32 cur_click, cur_disabled, cur_hidden;
if (w->desc_flags & WDF_RESTORE_DPARAM) COPY_OUT_DPARAM(dparam_backup, 0, lengthof(dparam_backup));