summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-21 18:13:43 +0000
committerrubidium <rubidium@openttd.org>2009-12-21 18:13:43 +0000
commit38ceeb41b7c6b5fb6e0f83f28c3da8f90cf05862 (patch)
tree4ca70c65c03e07eb75c3bb7a1914e6f16ad39a52 /src
parent64ac99a6c19ca82c5ca2bb78b6ed97ddc9f9b5a9 (diff)
downloadopenttd-38ceeb41b7c6b5fb6e0f83f28c3da8f90cf05862.tar.xz
(svn r18592) -Fix (r18591): argh... save after starting the commit :(
Diffstat (limited to 'src')
-rw-r--r--src/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index ab540927b..a4c2338dd 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1605,7 +1605,7 @@ Scrollbar *NWidgetBackground::FindScrollbar(Window *w, bool allow_next) const
* As we might have cases where the next widget in the array
* is a non-Core widget (e.g. NWID_SELECTION) we first get
* the base class and then dynamic_cast that. */
- const NWidgetCore *next_wid = dynamic_cast<NWidgetCore>(w->GetWidget<NWidgetBase>(this->index + 1));
+ const NWidgetCore *next_wid = dynamic_cast<NWidgetCore*>(w->GetWidget<NWidgetBase>(this->index + 1));
if (next_wid != NULL) return next_wid->FindScrollbar(w, false);
}
return NULL;