Fix crash when graphics init failed (fixes #5237)

This commit is contained in:
Dennis Felsing 2022-05-26 13:02:07 +02:00
parent 8e3d5c1b59
commit ac2657bfce

View file

@ -449,7 +449,8 @@ CGameConsole::CGameConsole() :
CGameConsole::~CGameConsole()
{
m_pConsoleLogger->OnConsoleDeletion();
if(m_pConsoleLogger)
m_pConsoleLogger->OnConsoleDeletion();
}
float CGameConsole::TimeNow()