From 2c60413622fb0a064804d35433a15106269751b7 Mon Sep 17 00:00:00 2001 From: NGnius Date: Sat, 4 Apr 2020 14:39:41 -0400 Subject: [PATCH] Fix crash on game exit when IDE is active --- GamecraftScripting/Commands/DebugCommandEngine.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/GamecraftScripting/Commands/DebugCommandEngine.cs b/GamecraftScripting/Commands/DebugCommandEngine.cs index d67738e..7ab2461 100644 --- a/GamecraftScripting/Commands/DebugCommandEngine.cs +++ b/GamecraftScripting/Commands/DebugCommandEngine.cs @@ -28,10 +28,7 @@ namespace GamecraftScripting.Commands CommandRegistrationHelper.Unregister("PythonVersion"); CommandRegistrationHelper.Unregister("PythonSearchPathes"); CommandRegistrationHelper.Unregister("ToggleIDE"); - if (isEnabledIDE) - { - toggleIDE(); - } + isEnabledIDE = false; } public void Ready()