summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--saedit/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/saedit/main.c b/saedit/main.c
index d0ce20a..d6c147a 100644
--- a/saedit/main.c
+++ b/saedit/main.c
@@ -388,6 +388,11 @@ void show_animation(SAEInfo *sae_info) {
if (next == NULL)
next = g_list_first(sae_info->animation);
+ if (!sprite->delay)
+ {
+ free_animations(sae_info);
+ return;
+ }
sae_info->animation = next;
sae_info->anim_tag = g_timeout_add(sprite->delay, (GSourceFunc)show_animation, sae_info);
}