From 5aef26eca4bd74018284f97e5f9212dea1cf3e5d Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 6 Nov 2005 22:58:17 +0000 Subject: [PATCH] small bugfixes --- src/swfc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/swfc.c b/src/swfc.c index 131c794..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; @@ -1209,7 +1211,7 @@ void s_sound(char*name, char*filename) unsigned blocksize = 1152; int is_mp3 = 0; - if(wav_read(filename, &wav)) { + if(wav_read(&wav, filename)) { int t; wav_convert2mono(&wav, &wav2, 44100); samples = (U16*)wav2.data; @@ -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; -- 1.7.10.4