mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 13:49:40 +00:00
Fix crash on exit if the window wasn't created (Fixes #2249)
This commit is contained in:
parent
bc686c93b5
commit
de12c96a46
1 changed files with 2 additions and 1 deletions
|
@ -208,7 +208,8 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
|
||||||
|
|
||||||
OMW::Engine::~Engine()
|
OMW::Engine::~Engine()
|
||||||
{
|
{
|
||||||
mOgre->restoreWindowGammaRamp();
|
if (mOgre)
|
||||||
|
mOgre->restoreWindowGammaRamp();
|
||||||
mEnvironment.cleanup();
|
mEnvironment.cleanup();
|
||||||
delete mScriptContext;
|
delete mScriptContext;
|
||||||
delete mOgre;
|
delete mOgre;
|
||||||
|
|
Loading…
Reference in a new issue