summaryrefslogtreecommitdiff
path: root/saedit
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-03 23:35:07 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-03 23:35:07 +0300
commitf9db569adbbd0a9fef1dcebe5a17865afe1118d6 (patch)
treeb9357ab728047ac65b5562eb558398604deacd01 /saedit
parent393f0d9fa726a0a2bef688589ad6ca8a3591297c (diff)
downloadevol-tools-f9db569adbbd0a9fef1dcebe5a17865afe1118d6.tar.gz
evol-tools-f9db569adbbd0a9fef1dcebe5a17865afe1118d6.tar.bz2
evol-tools-f9db569adbbd0a9fef1dcebe5a17865afe1118d6.tar.xz
evol-tools-f9db569adbbd0a9fef1dcebe5a17865afe1118d6.zip
fix infinite loop in saedit.
Diffstat (limited to 'saedit')
-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);
}