Fix crash when console window creation fails

qteditor
Sven Eberhardt 2016-02-11 23:35:38 -05:00
parent c9d3cd7417
commit ba3160c4c3
1 changed files with 6 additions and 3 deletions

View File

@ -215,9 +215,12 @@ void C4MessageBoard::LogNotify()
// Reset
iBackScroll=0;
// Draw
Draw(Output);
// startup: Draw message board only and do page flip
if (Startup) FullScreen.pSurface->PageFlip();
if (pDraw)
{
Draw(Output);
// startup: Draw message board only and do page flip
if (Startup) FullScreen.pSurface->PageFlip();
}
}
C4Player* C4MessageBoard::GetMessagePlayer(const char *szMessage)