mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Don't destroy a NULL window
This commit is contained in:
parent
49df07ea7f
commit
b7fa645530
1 changed files with 5 additions and 2 deletions
|
@ -235,8 +235,11 @@ OMW::Engine::~Engine()
|
|||
|
||||
mViewer = NULL;
|
||||
|
||||
if (mWindow)
|
||||
{
|
||||
SDL_DestroyWindow(mWindow);
|
||||
mWindow = NULL;
|
||||
}
|
||||
|
||||
SDL_Quit();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue