Fix possible use of uninitialized variables

For example, creating a C4WindowSDL and deleting it without calling
::Init() on it would lead to use of uninitialized variables.
console-destruction
Armin Burgmeier 2016-09-27 21:49:34 -10:00
parent 32f5b1cb25
commit 732fff3029
1 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,10 @@
/* C4Window */
C4Window::C4Window ():
Active(false), pSurface(0)
Active(false), pSurface(0), eKind(W_Fullscreen), window(nullptr)
#ifdef WITH_QT_EDITOR
, glwidget(nullptr)
#endif
{
}