mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 18:40:01 +00:00
Fix crash on exit if the window wasn't created (Fixes #2249)
This commit is contained in:
parent
bc686c93b5
commit
de12c96a46
@ -208,7 +208,8 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
|
||||
|
||||
OMW::Engine::~Engine()
|
||||
{
|
||||
mOgre->restoreWindowGammaRamp();
|
||||
if (mOgre)
|
||||
mOgre->restoreWindowGammaRamp();
|
||||
mEnvironment.cleanup();
|
||||
delete mScriptContext;
|
||||
delete mOgre;
|
||||
|
Loading…
x
Reference in New Issue
Block a user