From ff957be7d38a3143aa89a798184a975af00998bc Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 20 Jan 2017 14:24:50 +0100 Subject: Animated platform test for Abyss small --- animated.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'animated.lua') diff --git a/animated.lua b/animated.lua index de16195..160ee44 100644 --- a/animated.lua +++ b/animated.lua @@ -27,8 +27,10 @@ end -- Sets new animations list. function Animated:setAnimationsList(t) - self.animations = t - self:setAnimation("default") + if t then + self.animations = t + self:setAnimation("default") + end end -- Sets current animation by table key. -- cgit v1.1