]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/mainmenumanager.h
Formspec: textarea with scrollbar improvements
[dragonfireclient.git] / src / mainmenumanager.h
index 49bc88dff27edbdc3bcbd3415fb5e7f3d8531c12..ea9327813407e03dae232ebfaba72cb6793dd84e 100644 (file)
@@ -22,8 +22,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 /*
        All kinds of stuff that needs to be exposed from main.cpp
 */
-#include "debug.h" // assert
 #include "modalMenu.h"
+#include <cassert>
 #include <list>
 
 class IGameCallback
@@ -48,9 +48,11 @@ class MainMenuManager : public IMenuManager
 public:
        virtual void createdMenu(gui::IGUIElement *menu)
        {
+#ifndef NDEBUG
                for (gui::IGUIElement *i : m_stack) {
                        assert(i != menu);
                }
+#endif
 
                if(!m_stack.empty())
                        m_stack.back()->setVisible(false);