From 53055b46df99b3dc4038865dc27bc9e49de8ebeb Mon Sep 17 00:00:00 2001 From: William Moodhe / JetBoom Date: Wed, 3 Jun 2015 16:53:02 -0400 Subject: [PATCH] Fix SequenceDuration being able to return nil I assume this is a hidden change from a gmod update. --- gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua b/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua index 44796f1..a99f165 100644 --- a/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua +++ b/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua @@ -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