mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
(svn r18592) -Fix (r18591): argh... save after starting the commit :(
This commit is contained in:
parent
64ac99a6c1
commit
38ceeb41b7
@ -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
|
* As we might have cases where the next widget in the array
|
||||||
* is a non-Core widget (e.g. NWID_SELECTION) we first get
|
* is a non-Core widget (e.g. NWID_SELECTION) we first get
|
||||||
* the base class and then dynamic_cast that. */
|
* 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);
|
if (next_wid != NULL) return next_wid->FindScrollbar(w, false);
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user