From: kramm Date: Fri, 27 Jul 2007 19:56:21 +0000 (+0000) Subject: fixed bug in swf_Relocate() X-Git-Tag: buttons-working~612 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=7a5f39d094c446d261246cdf8d00f19df7fa2673 fixed bug in swf_Relocate() --- diff --git a/lib/modules/swftools.c b/lib/modules/swftools.c index 01a660b..6c37762 100644 --- a/lib/modules/swftools.c +++ b/lib/modules/swftools.c @@ -962,10 +962,10 @@ void swf_Relocate (SWF*swf, char*bitmap) if(slaveids[id]<0) { fprintf(stderr, "swf_Relocate: Mapping id (%d) never encountered before in %s\n", id, swf_TagGetName(tag)); - return ; + } else { + id = slaveids[id]; + PUT16(&tag->data[ptr[t]], id); } - id = slaveids[id]; - PUT16(&tag->data[ptr[t]], id); } } tag=tag->next;