Codechange: Add constant for INVALID_WIDGET. (#14649)

Replaces direct use of -1, making it easier to find.
This commit is contained in:
Peter Nelson
2025-09-21 22:47:04 +01:00
committed by dP
parent 18bf0e2b58
commit 1824e42246
19 changed files with 35 additions and 44 deletions

View File

@@ -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)
{