git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small fixes
[swftools.git]
/
lib
/
as3
/
abc.c
diff --git
a/lib/as3/abc.c
b/lib/as3/abc.c
index
30e5616
..
2962331
100644
(file)
--- a/
lib/as3/abc.c
+++ b/
lib/as3/abc.c
@@
-284,11
+284,11
@@
trait_t* abc_class_staticslot(abc_class_t*cls, multiname_t*name, multiname_t*typ
}
}
-trait_t* abc_class_find_slotid(abc_class_t*cls, int slotid)
+trait_t* traits_find_slotid(trait_list_t*traits, int slotid)
{
trait_list_t*l;
trait_t*t=0;
{
trait_list_t*l;
trait_t*t=0;
- for(l=cls->traits;l;l=l->next) {
+ for(l=traits;l;l=l->next) {
if(l->trait->slot_id==slotid) {
t=l->trait;
break;
if(l->trait->slot_id==slotid) {
t=l->trait;
break;
@@
-933,6
+933,8
@@
static pool_t*writeABC(TAG*abctag, void*code, pool_t*pool)
abc_file_t*file = (abc_file_t*)code;
if(!pool)
pool = pool_new();
abc_file_t*file = (abc_file_t*)code;
if(!pool)
pool = pool_new();
+ if(!file)
+ file = abc_file_new();
TAG*tmp = swf_InsertTag(0,0);
TAG*tag = tmp;
TAG*tmp = swf_InsertTag(0,0);
TAG*tag = tmp;