diff --git a/source/Irrlicht/CGUIMenu.cpp b/source/Irrlicht/CGUIMenu.cpp index 37e9ec31..ce235c71 100644 --- a/source/Irrlicht/CGUIMenu.cpp +++ b/source/Irrlicht/CGUIMenu.cpp @@ -42,6 +42,9 @@ void CGUIMenu::draw() return; IGUISkin* skin = Environment->getSkin(); + if ( !skin ) + return; + IGUIFont* font = skin->getFont(EGDF_MENU); if (font != LastFont) @@ -199,6 +202,8 @@ void CGUIMenu::recalculateSize() IGUISkin* skin = Environment->getSkin(); + if ( !skin ) + return; IGUIFont* font = skin->getFont(EGDF_MENU); if (!font)