Solved.
Solved.
Last edited by weequ; 04-10-2010 at 05:11 PM.
You need to set the length of T2D[I], I think.
Would you mind showing the whole script? Could be a problem with the array NoFindBoxes aswell.
Might be because you mess with the Length of T2D[I] in the middle of a loop (shortening it) and then when it goes to the next step in the loop its out of range because the high is smaller. " SetArrayLength(T2D[I], L2-1);" <-> "for II := 0 to High(T2D[I]) do"
Ok i think ill do some more debugging but now i have to go school![]()
Thanks icefire.
All I had to do was to add a break;
Code:for II := 0 to High(T2D[I]) do for III := 0 to High(NoFindBoxes) do if PointInBox(T2D[I][II], NoFindBoxes[III]) then begin L := High(T2D[I]); Swap(T2D[I][II], T2D[I][L]); L2 := Length(T2D[I]) SetArrayLength(T2D[I], L2-1); Break; // <---- HERE end;
Last edited by weequ; 04-10-2010 at 01:50 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)