Fix SequenceDuration being able to return nil
I assume this is a hidden change from a gmod update.
This commit is contained in:
parent
95422d5a54
commit
53055b46df
1 changed files with 5 additions and 0 deletions
|
@ -326,3 +326,8 @@ if CLIENT then
|
|||
meta.SetPhysicsAttacker = function() end
|
||||
end
|
||||
end
|
||||
|
||||
local OldSequenceDuration = meta.SequenceDuration
|
||||
function meta:SequenceDuration(seqid)
|
||||
return OldSequenceDuration(self, seqid) or 0
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue