Strange glitch with patrol point array

A quick look and I see:

len.JPG

That’s going to run off the end of the array. You need to have a -1 in there…