mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 17:32:45 +01:00
Codechange: explicitly initialise member variables of Windows
This commit is contained in:
@@ -121,10 +121,10 @@ public:
|
||||
|
||||
/** The window used for building objects. */
|
||||
class BuildObjectWindow : public PickerWindow {
|
||||
int info_height; ///< The height of the info box.
|
||||
int info_height = 1; ///< The height of the info box.
|
||||
|
||||
public:
|
||||
BuildObjectWindow(WindowDesc &desc, WindowNumber) : PickerWindow(desc, nullptr, 0, ObjectPickerCallbacks::instance), info_height(1)
|
||||
BuildObjectWindow(WindowDesc &desc, WindowNumber) : PickerWindow(desc, nullptr, 0, ObjectPickerCallbacks::instance)
|
||||
{
|
||||
ResetObjectToPlace();
|
||||
this->ConstructWindow();
|
||||
|
||||
Reference in New Issue
Block a user