diff --git a/hecl/include/hecl/Console.hpp b/hecl/include/hecl/Console.hpp index f0a0215ea..ef68054e8 100644 --- a/hecl/include/hecl/Console.hpp +++ b/hecl/include/hecl/Console.hpp @@ -55,7 +55,7 @@ public: Fatal /**< Non-recoverable error message (Kept for compatibility with logvisor) */ }; - enum State { Closed, Closing, Opened, Opening }; + enum class State { Closed, Closing, Opened, Opening }; private: CVarManager* m_cvarMgr = nullptr; diff --git a/hecl/lib/Console.cpp b/hecl/lib/Console.cpp index dc438ff33..5da392843 100644 --- a/hecl/lib/Console.cpp +++ b/hecl/lib/Console.cpp @@ -242,8 +242,9 @@ void Console::handleCharCode(unsigned long chr, boo::EModifierKey /*mod*/, bool } void Console::handleSpecialKeyDown(boo::ESpecialKey sp, boo::EModifierKey mod, bool /*repeat*/) { - if (m_state != Opened) + if (m_state != State::Opened) { return; + } switch (sp) { case boo::ESpecialKey::Insert: