* converted for-loop to while-loop, because its loop count is used on exit

even if no break is triggered

git-svn-id: trunk@34776 -
This commit is contained in:
Jonas Maebe 2016-11-01 14:01:41 +00:00
parent 85f2903b8b
commit 1c04470b66

View File

@ -55,9 +55,13 @@ begin
end
else
begin
for i:=1 to num_transitions-1 do
if (timer<transitions[i]) then
break;
i:=1;
while i<=num_transitions-1 do
begin
if (timer<transitions[i]) then
break;
inc(i);
end;
i:=type_idxs[i-1];
end;
find_transition:=@types[i];