From 832b7a62dff587f5103cd57fad511f972a1760af Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Mon, 6 Jan 2020 20:00:57 +0100 Subject: [PATCH] Bug fix where effect runtime functions doesn't get removed --- gamemode/engine/lib/sh_effects.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gamemode/engine/lib/sh_effects.lua b/gamemode/engine/lib/sh_effects.lua index 3844364..39092e6 100644 --- a/gamemode/engine/lib/sh_effects.lua +++ b/gamemode/engine/lib/sh_effects.lua @@ -52,6 +52,8 @@ if SERVER then -- server only functions function Quantum.Effect.RemoveRuntimeFunction( pl, effectid, hookID ) hookID = hookID || "Quantum_Effects_RunTime_" .. tostring(pl:SteamID64()) .. "_" .. tostring(effectid) Quantum.Debug( "Removing runtime effect hook: " .. hookID ) + + pl.effecthooks[hookID] = nil hook.Remove( "Think", hookID ) end