From 9694895b71384b3f9f7436edb3c52477e824f73f Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Mon, 21 Mar 2022 17:48:28 -0300 Subject: [PATCH] fix client crash --- Barotrauma/BarotraumaShared/SharedSource/Lua/LuaSetup.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaSetup.cs b/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaSetup.cs index 742f46439..6cec54b10 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaSetup.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/Lua/LuaSetup.cs @@ -213,9 +213,9 @@ namespace Barotrauma game?.Stop(); hook?.Call("stop", new object[] { }); - hook = null; - game = null; - networking = null; + hook = new LuaHook(); + game = new LuaGame(); + networking = new LuaNetworking(); luaScriptLoader = null; }