Posted By: Tai
Arrays, pointers, vectors, oh my! - 01/12/10 03:59
So, I define the following
I assign the crowd number with a the crowd_num variable which I add to at the start of the action
And then I do this...
It crashes! Why?
Code:
var crowd_num = 0; VECTOR* crowd_pos[100]; ENTITY* crowd[100];
I assign the crowd number with a the crowd_num variable which I add to at the start of the action
Code:
my = crowd[crowd_num];
And then I do this...
Code:
vec_set(crowd_pos[0],my.x);
It crashes! Why?