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:
parent
a7c40fede7
commit
450517bb5c
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user