git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed segfault in swfrender
[swftools.git]
/
lib
/
readers
/
swf.c
diff --git
a/lib/readers/swf.c
b/lib/readers/swf.c
index
58e027c
..
598177e
100644
(file)
--- a/
lib/readers/swf.c
+++ b/
lib/readers/swf.c
@@
-565,7
+565,7
@@
static void placeObject(void*self, int id, void*data)
sprite_t* s = (sprite_t*)c->data;
- map16_t* depths = extractFrame(c->tag->next, p->age % s->frameCount);
+ map16_t* depths = extractFrame(c->tag->next, s->frameCount>0? p->age % s->frameCount : 0);
map16_enumerate(depths, placeObject, r);
int t;