changeset 14049:d7bb77a690b4 draft

(svn r18592) -Fix (r18591): argh... save after starting the commit :(
author rubidium <rubidium@openttd.org>
date Mon, 21 Dec 2009 18:13:43 +0000
parents 014650278d9e
children 350c674deca7
files src/widget.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1605,7 +1605,7 @@
 		 * 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;