Fix AI headless instance crash
This commit is contained in:
parent
5a585b85fb
commit
b6ca771a0e
@ -1034,7 +1034,7 @@ void NetworkingLobby::setStartingTimerTo(float t)
|
||||
// ----------------------------------------------------------------------------
|
||||
void NetworkingLobby::setHeader(const core::stringw& header)
|
||||
{
|
||||
if (m_header->getText() == header)
|
||||
if (!m_header || m_header->getText() == header)
|
||||
return;
|
||||
m_header_text_width =
|
||||
GUIEngine::getTitleFont()->getDimension(header.c_str()).Width;
|
||||
|
Loading…
x
Reference in New Issue
Block a user