Fix crash on uninitialized pointer in Qt GL window initialization

qteditor
Sven Eberhardt 2016-08-06 15:22:58 -04:00
parent 8ec12d8490
commit c78a98d4b3
1 changed files with 3 additions and 0 deletions

View File

@ -571,6 +571,9 @@ LRESULT APIENTRY DialogWinProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPara
}
C4Window::C4Window (): Active(false), pSurface(0), hWindow(0)
#ifdef WITH_QT_EDITOR
, glwidget(nullptr)
#endif
{
}
C4Window::~C4Window ()