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

View File

@@ -84,7 +84,7 @@ static void PlaceAirport(TileIndex tile)
/** Airport build toolbar window handler. */
struct BuildAirToolbarWindow : Window {
int last_user_action = INVALID_WID_AT; // Last started user action.
WidgetID last_user_action = INVALID_WIDGET; // Last started user action.
BuildAirToolbarWindow(WindowDesc &desc, WindowNumber window_number) : Window(desc)
{