diff options
author | rubidium <rubidium@openttd.org> | 2014-10-06 19:16:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-10-06 19:16:29 +0000 |
commit | 0af26b8a3786f243dd6920dbeac7d140fb447775 (patch) | |
tree | 5e4e2fdf3e4fc7c3d053f0b01acbc073afb6dfcc /src/widget.cpp | |
parent | 8c7f376ae174d4bf653a8f4fa17d5188acf83cb5 (diff) | |
download | openttd-0af26b8a3786f243dd6920dbeac7d140fb447775.tar.xz |
(svn r26971) -Fix: widget_data was sometimes uint16 and sometimes uint32; make it always be uint32
Diffstat (limited to 'src/widget.cpp')
-rw-r--r-- | src/widget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index cfbb6f400..0532142ae 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -2107,7 +2107,7 @@ Dimension NWidgetLeaf::dropdown_dimension = {0, 0}; * @param data Data of the widget. * @param tip Tooltip of the widget. */ -NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data, StringID tip) : NWidgetCore(tp, colour, 1, 1, data, tip) +NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint32 data, StringID tip) : NWidgetCore(tp, colour, 1, 1, data, tip) { assert(index >= 0 || tp == WWT_LABEL || tp == WWT_TEXT || tp == WWT_CAPTION || tp == WWT_RESIZEBOX || tp == WWT_SHADEBOX || tp == WWT_DEFSIZEBOX || tp == WWT_DEBUGBOX || tp == WWT_STICKYBOX || tp == WWT_CLOSEBOX); if (index >= 0) this->SetIndex(index); |