View Single Post
Old Apr 28th, 2005, 6:14 AM   #8
Easter Bunny
Programmer
 
Easter Bunny's Avatar
 
Join Date: Mar 2005
Location: different places. constantly on the run.
Posts: 57
Rep Power: 4 Easter Bunny is on a distinguished road
um...

if (p1Places[y][x])

note the x and y have swapped around. the reason you were going out of bounds, was because the loop using x as a variable is running quicker than the one using y. x was going up to 7 and y to 2. the x loop was causing the error.

have you started moving pieces around?
__________________
There's got to be more to life than being really, really
ridiculously good looking
Easter Bunny is offline   Reply With Quote