summaryrefslogtreecommitdiffhomepage
path: root/animated.lua
diff options
context:
space:
mode:
Diffstat (limited to 'animated.lua')
-rw-r--r--animated.lua6
1 files changed, 4 insertions, 2 deletions
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.