Fix SequenceDuration being able to return nil

I assume this is a hidden change from a gmod update.
This commit is contained in:
William Moodhe / JetBoom 2015-06-03 16:53:02 -04:00
parent 95422d5a54
commit 53055b46df

View file

@ -326,3 +326,8 @@ if CLIENT then
meta.SetPhysicsAttacker = function() end meta.SetPhysicsAttacker = function() end
end end
end end
local OldSequenceDuration = meta.SequenceDuration
function meta:SequenceDuration(seqid)
return OldSequenceDuration(self, seqid) or 0
end