Bug fix where effect runtime functions doesn't get removed

master
AlmTech Software 5 years ago
parent a39cf80eae
commit 832b7a62df
  1. 2
      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

Loading…
Cancel
Save