diff --git a/apps/openmw/mwgui/controllerbuttonsoverlay.hpp b/apps/openmw/mwgui/controllerbuttonsoverlay.hpp index e828556e94..cf38505bc2 100644 --- a/apps/openmw/mwgui/controllerbuttonsoverlay.hpp +++ b/apps/openmw/mwgui/controllerbuttonsoverlay.hpp @@ -49,7 +49,8 @@ namespace MWGui Button mButton; std::string mName; InputType mInputType; - union { + union + { SDL_GameControllerButton mButton; SDL_GameControllerAxis mAxis; } mId; @@ -63,7 +64,12 @@ namespace MWGui MyGUI::TextBox* mText; Gui::HBox* mHBox; - ButtonWidgets() : mImage(nullptr), mText(nullptr), mHBox(nullptr) {} + ButtonWidgets() + : mImage(nullptr) + , mText(nullptr) + , mHBox(nullptr) + { + } }; std::array mButtons;