diff --git a/src/guiengine/widgets/CGUISTKListBox.cpp b/src/guiengine/widgets/CGUISTKListBox.cpp index 141328dd1..152ff1c6c 100644 --- a/src/guiengine/widgets/CGUISTKListBox.cpp +++ b/src/guiengine/widgets/CGUISTKListBox.cpp @@ -59,7 +59,7 @@ CGUISTKListBox::CGUISTKListBox(IGUIEnvironment* environment, IGUIElement* parent setTabOrder(-1); updateAbsolutePosition(); - m_disactivated = false; + m_deactivated = false; } @@ -299,7 +299,7 @@ bool CGUISTKListBox::OnEvent(const SEvent& event) if (Selected<0) Selected = 0; - if (m_disactivated) + if (m_deactivated) Selected = -1; recalculateScrollPos(); @@ -430,7 +430,7 @@ void CGUISTKListBox::selectNew(s32 ypos, bool onlyHover) s32 oldSelected = Selected; Selected = getItemAt(AbsoluteRect.UpperLeftCorner.X, ypos); - if (Selected == -1 || Items.empty() || m_disactivated) + if (Selected == -1 || Items.empty() || m_deactivated) { Selected = -1; return; diff --git a/src/guiengine/widgets/CGUISTKListBox.hpp b/src/guiengine/widgets/CGUISTKListBox.hpp index 8f0fafb5c..c887b5d7c 100644 --- a/src/guiengine/widgets/CGUISTKListBox.hpp +++ b/src/guiengine/widgets/CGUISTKListBox.hpp @@ -174,8 +174,8 @@ namespace irr gui::IGUIScrollBar* getScrollBar() const { return ScrollBar; } void setDisactivated(bool val) { - m_disactivated = val; - if (m_disactivated) + m_deactivated = val; + if (m_deactivated) Selected = -1; } private: @@ -206,7 +206,7 @@ namespace irr bool AutoScroll; bool HighlightWhenNotFocused; bool m_alternating_darkness; - bool m_disactivated; + bool m_deactivated; };