Codechange: explicitly initialise member variables of Windows
This commit is contained in:
+3
-3
@@ -93,9 +93,9 @@ static WindowDesc _ai_config_desc(
|
||||
* Window to configure which AIs will start.
|
||||
*/
|
||||
struct AIConfigWindow : public Window {
|
||||
CompanyID selected_slot; ///< The currently selected AI slot or \c CompanyID::Invalid().
|
||||
int line_height; ///< Height of a single AI-name line.
|
||||
Scrollbar *vscroll; ///< Cache of the vertical scrollbar.
|
||||
CompanyID selected_slot = CompanyID::Invalid(); ///< The currently selected AI slot or \c CompanyID::Invalid().
|
||||
int line_height = 0; ///< Height of a single AI-name line.
|
||||
Scrollbar *vscroll = nullptr; ///< Cache of the vertical scrollbar.
|
||||
|
||||
AIConfigWindow() : Window(_ai_config_desc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user