diff --git a/include/TGUI/Widgets/BoxLayout.hpp b/include/TGUI/Widgets/BoxLayout.hpp index cf9f2ec4..f39bf2ec 100644 --- a/include/TGUI/Widgets/BoxLayout.hpp +++ b/include/TGUI/Widgets/BoxLayout.hpp @@ -151,7 +151,7 @@ namespace tgui ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// protected: - float m_spaceBetweenWidgetsCached; + float m_spaceBetweenWidgetsCached = 0; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////