I am having problem with a small code segment,the segment is part of a large project, everything else workd properly and this problem appears to be issolated..i am trying to pass two integer values from one function to another..there appears to be nothing wrong with it, but when I debug, the values I am passing from one function are not what the other function are receiving...
prototypes inside header file:
bool draw_gemstones(struct PacmanBoard* pcmb_p);
bool init_gemstones(struct Gemstone *gem_p,struct PacmanBoard* pcmb_p,double size,int x,int y);
im calling init_gemstones() inside draw_gemstones()....
i want int x=1 and inty=0, but when im debugging and i look inside init_gemstones() i get int x=11805864 and y=11805864
it seems, like its something simple. I just cant see whats wrong..please help!