mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
Don't destroy a NULL window
This commit is contained in:
parent
49df07ea7f
commit
b7fa645530
@ -235,8 +235,11 @@ OMW::Engine::~Engine()
|
|||||||
|
|
||||||
mViewer = NULL;
|
mViewer = NULL;
|
||||||
|
|
||||||
SDL_DestroyWindow(mWindow);
|
if (mWindow)
|
||||||
mWindow = NULL;
|
{
|
||||||
|
SDL_DestroyWindow(mWindow);
|
||||||
|
mWindow = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user