mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 00:49:11 +00:00
Codefix: Widget should be passed as WidgetID type. (#12332)
This commit is contained in:
@@ -476,7 +476,7 @@ public:
|
||||
* Marks a widget as raised and dirty (redraw), when it is marked as lowered.
|
||||
* @param widget_index index of this widget in the window
|
||||
*/
|
||||
inline void RaiseWidgetWhenLowered(uint8_t widget_index)
|
||||
inline void RaiseWidgetWhenLowered(WidgetID widget_index)
|
||||
{
|
||||
if (this->IsWidgetLowered(widget_index)) {
|
||||
this->RaiseWidget(widget_index);
|
||||
|
Reference in New Issue
Block a user