git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b616ded
)
lastframe patch from Huub Schaeks
author
kramm
<kramm>
Mon, 9 Jun 2008 10:29:39 +0000
(10:29 +0000)
committer
kramm
<kramm>
Mon, 9 Jun 2008 10:29:39 +0000
(10:29 +0000)
src/swfc.c
patch
|
blob
|
history
diff --git
a/src/swfc.c
b/src/swfc.c
index
c470fbc
..
eb18eba
100644
(file)
--- a/
src/swfc.c
+++ b/
src/swfc.c
@@
-969,6
+969,9
@@
static void s_endSprite()
writeInstance(i);
}
}
writeInstance(i);
}
}
+
+ // the writeInstance loop above may have inserted tags after what used yo be the current tag,
+ // so let's make sure 'tag' point to the current tag again.
while (tag->next)
tag = tag->next;
while (tag->next)
tag = tag->next;
@@
-1028,6
+1031,11
@@
static void s_endSWF()
swf = stack[stackpos].swf;
filename = stack[stackpos].filename;
swf = stack[stackpos].swf;
filename = stack[stackpos].filename;
+ // the writeInstance loop above may have inserted tags after what used yo be the current tag,
+ // so let's make sure 'tag' point to the current tag again.
+ while (tag->next)
+ tag = tag->next;
+
//if(tag->prev && tag->prev->id != ST_SHOWFRAME)
// tag = swf_InsertTag(tag, ST_SHOWFRAME);
tag = swf_InsertTag(tag, ST_SHOWFRAME);
//if(tag->prev && tag->prev->id != ST_SHOWFRAME)
// tag = swf_InsertTag(tag, ST_SHOWFRAME);
tag = swf_InsertTag(tag, ST_SHOWFRAME);