Fixed crash (in race).

This commit is contained in:
hiker 2015-01-16 14:58:40 +11:00
parent d7266c3300
commit 02f4aa3015

View File

@ -269,7 +269,8 @@ void Widget::setFocusForPlayer(const int playerID)
this->focused(playerID);
Screen* screen = GUIEngine::getCurrentScreen();
screen->onFocusChanged(previous_focus, this, playerID);
if(screen)
screen->onFocusChanged(previous_focus, this, playerID);
}
// -----------------------------------------------------------------------------