Original Post
Given the defintition;
and that the GSTATE class contains an object map of type vector. I use the following declarations to create a pointer to the vector:
What does ivMap really point to? I was expecting ivMap[someint] to return the contents of the approipriate location within the gstate->map array/vector. Instead I get goobledigook.
struct
{
// In Game BOBs
lpBOB mousepointer;
lpBOB sheep;
lpCharacter player;
lpGSTATE gstate;
//iCOORD test;
} GameG ;
|
GameG.gstate = new GSTATE(iTempWidth, iTempWidth); vector<int>* ivMap = &GameG.gstate->map; |