Codechange: Add constant for INVALID_WIDGET. (#14649)
Replaces direct use of -1, making it easier to find.
This commit is contained in:
@@ -453,7 +453,7 @@ RoadBits FindRailsToConnect(TileIndex tile) {
|
||||
/** Rail toolbar management class. */
|
||||
struct BuildRailToolbarWindow : Window {
|
||||
RailType railtype = INVALID_RAILTYPE; ///< Rail type to build.
|
||||
int last_user_action = INVALID_WID_RAT; ///< Last started user action.
|
||||
WidgetID last_user_action = INVALID_WIDGET; ///< Last started user action.
|
||||
|
||||
BuildRailToolbarWindow(WindowDesc &desc, RailType railtype) : Window(desc), railtype(railtype)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user