Fix crash first time STK is run.

This commit is contained in:
hiker 2015-01-13 17:07:29 +11:00
parent 593e52dd6f
commit 3eb2d87029

View File

@ -1319,7 +1319,10 @@ int main(int argc, char *argv[] )
// the login screen. This way on first start players are // the login screen. This way on first start players are
// forced to create a player. // forced to create a player.
if (PlayerManager::get()->getNumPlayers() == 0) if (PlayerManager::get()->getNumPlayers() == 0)
{
RegisterScreen::getInstance()->push(); RegisterScreen::getInstance()->push();
RegisterScreen::getInstance()->setParent(UserScreen::getInstance());
}
} }
#ifdef ENABLE_WIIUSE #ifdef ENABLE_WIIUSE
// Show a dialog to allow connection of wiimotes. */ // Show a dialog to allow connection of wiimotes. */