class mapData{public: mapData( vector<LPDIRECT3DTEXTURE9> tl): texture_list(tl) { mNumTiles=0; } ~mapData(){}; int tw, th; int mNumTiles; vector<tile> tile_list; vector<LPDIRECT3DTEXTURE9> texture_list;};LPVOID &getMapData() { static void *data; data =(LPVOID)&md; //md is the array return data; }
When I cast it back to mapData ( (mapData**)&GetMapData()), the debuggers shows that it doesn't have the original values.
[Edited by - ApochPiQ on August 25, 2010 5:10:22 AM]