1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-04-16 17:42:31 +00:00

Don't destroy a NULL window

This commit is contained in:
scrawl 2015-05-15 19:34:18 +02:00
parent 49df07ea7f
commit b7fa645530

View File

@ -235,8 +235,11 @@ OMW::Engine::~Engine()
mViewer = NULL; mViewer = NULL;
if (mWindow)
{
SDL_DestroyWindow(mWindow); SDL_DestroyWindow(mWindow);
mWindow = NULL; mWindow = NULL;
}
SDL_Quit(); SDL_Quit();
} }