small bugfixes
[swftools.git] / src / swfc.c
index 4313903..bc6d711 100644 (file)
@@ -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;