Fixed rendering error when disabling volumetric

This commit is contained in:
Antoine Pilote
2023-07-04 12:41:35 -04:00
parent 1f6c1467ca
commit c2b80eb2f9
9 changed files with 40 additions and 13 deletions

View File

@@ -120,7 +120,7 @@ namespace Nuake {
void WrenScript::CallExit()
{
if (!CompiledSuccesfully)
if (!CompiledSuccesfully || !m_Instance)
return;
WrenVM* vm = ScriptingEngine::GetWrenVM();