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 GitHub
parent 1278f62e2e
commit 1229a498b7
19 changed files with 35 additions and 44 deletions
+1 -1
View File
@@ -438,7 +438,7 @@ static void HandleAutoSignalPlacement()
/** 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)
{