Codechange: Add constant for INVALID_WIDGET. (#14649)
Replaces direct use of -1, making it easier to find.
This commit is contained in:
+1
-1
@@ -344,7 +344,7 @@ static bool RoadToolbar_CtrlChanged(Window *w)
|
||||
/** Road toolbar window handler. */
|
||||
struct BuildRoadToolbarWindow : Window {
|
||||
RoadType roadtype = INVALID_ROADTYPE; ///< Road type to build.
|
||||
int last_started_action = INVALID_WID_ROT; ///< Last started user action.
|
||||
WidgetID last_started_action = INVALID_WIDGET; ///< Last started user action.
|
||||
|
||||
BuildRoadToolbarWindow(WindowDesc &desc, WindowNumber window_number) : Window(desc), roadtype(_cur_roadtype)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user