From e567897c0af197377b6049fa5336285b4c0b6a67 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 17 Nov 2003 19:44:24 +0000 Subject: [PATCH] added warning message for broken SWFs. --- src/swfextract.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/swfextract.c b/src/swfextract.c index 81b7a48..a5f549a 100644 --- a/src/swfextract.c +++ b/src/swfextract.c @@ -285,7 +285,9 @@ void extractTag(SWF*swf, char*filename) changed = 0; for(t=0;t<65536;t++) { if(used[t] && !(used[t]&2)) { - if(tags[t]->id==ST_DEFINESPRITE) { + if(tags[t]==0) { + msg(" ID %d is referenced, but never defined.", t); + } else if(tags[t]->id==ST_DEFINESPRITE) { TAG*tag = tags[t]; while(tag->id != ST_END) { -- 1.7.10.4