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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user