X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfc.c;h=bc6d711f2e42ded1d29f6ebe4a07dd6d8c6b5f03;hb=5aef26eca4bd74018284f97e5f9212dea1cf3e5d;hp=4313903139b06d08e79010770f41eab37b4e7f5a;hpb=78efc99ad38ff7d00da545c57449e164ac026d25;p=swftools.git diff --git a/src/swfc.c b/src/swfc.c index 4313903..bc6d711 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -1114,6 +1114,8 @@ void s_texture(char*name, char*object, int x, int y, float scalex, float scaley, parameters_t p; FILLSTYLE*fs = &texture->fs; + memset(&p, 0, sizeof(parameters_t)); + if(bitmap) { fs->type = FILL_TILED; fs->id_bitmap = bitmap->id; @@ -1382,7 +1384,7 @@ int s_swf3action(char*name, char*action) ActionTAG* a = 0; instance_t* object = 0; if(name) - dictionary_lookup(&instances, name); + object = (instance_t*)dictionary_lookup(&instances, name); if(!object && name && *name) { /* we have a name, but couldn't find it. Abort. */ return 0;