diff options
author | rubidium <rubidium@openttd.org> | 2009-10-30 07:51:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-30 07:51:33 +0000 |
commit | 3bc0a4ed3ee3b7e7ea084adb431f1afdad52dfad (patch) | |
tree | 8ef956e7e6efb6efd5c0a5a825eaac12149d3441 /src/widget.cpp | |
parent | 87ea1f1dcd16079c064474e298a4931834e5a31e (diff) | |
download | openttd-3bc0a4ed3ee3b7e7ea084adb431f1afdad52dfad.tar.xz |
(svn r17903) -Codechange: don't get a modifiable NWidget from a const Window
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 880a94ae5..befc94da3 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -855,7 +855,7 @@ void Window::DrawSortButtonState(int widget, SortButtonState state) const top = this->widget[widget].top; } else { assert(this->nested_array != NULL); - NWidgetBase *nwid = this->GetWidget<NWidgetBase>(widget); + const NWidgetBase *nwid = this->GetWidget<NWidgetBase>(widget); base = offset + nwid->pos_x + (_dynlang.text_dir == TD_LTR ? nwid->current_x - WD_SORTBUTTON_ARROW_WIDTH : 0); top = nwid->pos_y; } |