Fixed crash when starting game

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4087 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2009-10-05 16:46:19 +00:00
parent 231807a410
commit 0688236e8d

View File

@@ -223,7 +223,10 @@ void render(float elapsed_time)
g_env->drawAll();
// ---- some menus may need updating
getCurrentScreen()->onUpdate(elapsed_time, g_driver);
if (gamestate != GAME)
{
getCurrentScreen()->onUpdate(elapsed_time, g_driver);
}
}
// -----------------------------------------------------------------------------
Widget* getWidget(const char* name)