diff --git a/Artemis/Artemis/Profiles/Lua/LuaWrapper.cs b/Artemis/Artemis/Profiles/Lua/LuaWrapper.cs index 284a74c94..c5aed5edd 100644 --- a/Artemis/Artemis/Profiles/Lua/LuaWrapper.cs +++ b/Artemis/Artemis/Profiles/Lua/LuaWrapper.cs @@ -99,6 +99,8 @@ namespace Artemis.Profiles.Lua try { + LuaScript.Globals.Clear(); + LuaScript.Registry.Clear(); LuaScript.Registry.RegisterConstants(); LuaScript.Registry.RegisterCoreModules(CoreModules.Preset_SoftSandbox); LuaScript.Globals.RegisterConstants();