Fixed rare crash

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5961 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-09-11 16:49:46 +00:00
parent a7c40fede7
commit 450517bb5c

View File

@ -924,7 +924,9 @@ namespace GUIEngine
const GameState gamestate = g_state_manager->getGameState();
if (gamestate == MENU && !GUIEngine::getCurrentScreen()->needs3D())
if (gamestate == MENU &&
GUIEngine::getCurrentScreen() != NULL &&
!GUIEngine::getCurrentScreen()->needs3D())
{
g_skin->drawBgImage();
}