forked from mirror/OpenTTD
Codechange: use better location for the "invalid" action sentinel value
It used to be a random sentinel for end-of-(widget-)list that was used to tell that no action has taken place yet. Since the last action is practically the widget that was pressed, add the sentinel to that enumeration.
This commit is contained in:
@@ -87,7 +87,7 @@ struct BuildAirToolbarWindow : Window {
|
||||
this->InitNested(window_number);
|
||||
this->OnInvalidateData();
|
||||
if (_settings_client.gui.link_terraform_toolbar) ShowTerraformToolbar(this);
|
||||
this->last_user_action = WIDGET_LIST_END;
|
||||
this->last_user_action = INVALID_WID_AT;
|
||||
}
|
||||
|
||||
void Close() override
|
||||
|
Reference in New Issue
Block a user