Fixed crash (in race).
This commit is contained in:
parent
d7266c3300
commit
02f4aa3015
@ -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);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user