From: kramm Date: Sun, 18 Nov 2001 09:25:19 +0000 (+0000) Subject: fixjump didn't work if both arguments were identical. (used in tight loops) X-Git-Tag: release-0-1-2~12 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=2f8eafc40152ad19b48e49f7dd16c4508782a568 fixjump didn't work if both arguments were identical. (used in tight loops) --- diff --git a/lib/modules/swfaction.c b/lib/modules/swfaction.c index aa2894a..53aab9c 100644 --- a/lib/modules/swfaction.c +++ b/lib/modules/swfaction.c @@ -598,13 +598,12 @@ void action_fixjump(ActionMarker m1, ActionMarker m2) int len = 0; int oplen = 0; a = a1; + + a = a->next; //first one is free while(a && a!=a2) { - if(a != a1) //first one is for free - { - len += ActionTagSize(a); - oplen ++; - } + len += ActionTagSize(a); + oplen ++; a = a->next; } if(!a)